fix unit tests
This commit is contained in:
parent
71512442de
commit
4b00a44fcf
16
main_test.go
16
main_test.go
|
|
@ -77,6 +77,7 @@ providers:
|
|||
insecureSkipNonce: true
|
||||
audienceClaims: [aud]
|
||||
extraAudiences: []
|
||||
cookieRefreshName: 'hsdpamcookie'
|
||||
loginURLParameters:
|
||||
- name: approval_prompt
|
||||
default:
|
||||
|
|
@ -151,14 +152,13 @@ redirect_url="http://localhost:4180/oauth2/callback"
|
|||
Tenant: "common",
|
||||
},
|
||||
OIDCConfig: options.OIDCOptions{
|
||||
GroupsClaim: "groups",
|
||||
EmailClaim: "email",
|
||||
UserIDClaim: "email",
|
||||
AudienceClaims: []string{"aud"},
|
||||
ExtraAudiences: []string{},
|
||||
InsecureSkipNonce: true,
|
||||
EnableCookieRefresh: false,
|
||||
CookieRefreshName: "hsdpamcookie",
|
||||
GroupsClaim: "groups",
|
||||
EmailClaim: "email",
|
||||
UserIDClaim: "email",
|
||||
AudienceClaims: []string{"aud"},
|
||||
ExtraAudiences: []string{},
|
||||
InsecureSkipNonce: true,
|
||||
CookieRefreshName: "hsdpamcookie",
|
||||
},
|
||||
LoginURLParameters: []options.LoginURLParameter{
|
||||
{Name: "approval_prompt", Default: []string{"force"}},
|
||||
|
|
|
|||
|
|
@ -36,16 +36,14 @@ var _ = Describe("Load", func() {
|
|||
},
|
||||
|
||||
LegacyProvider: LegacyProvider{
|
||||
ProviderType: "google",
|
||||
AzureTenant: "common",
|
||||
ApprovalPrompt: "force",
|
||||
UserIDClaim: "email",
|
||||
OIDCEmailClaim: "email",
|
||||
OIDCGroupsClaim: "groups",
|
||||
OIDCAudienceClaims: []string{"aud"},
|
||||
InsecureOIDCSkipNonce: true,
|
||||
OIDCEnableCookieRefresh: false,
|
||||
OIDCCookieRefreshName: "hsdpamcookie",
|
||||
ProviderType: "google",
|
||||
AzureTenant: "common",
|
||||
ApprovalPrompt: "force",
|
||||
UserIDClaim: "email",
|
||||
OIDCEmailClaim: "email",
|
||||
OIDCGroupsClaim: "groups",
|
||||
OIDCAudienceClaims: []string{"aud"},
|
||||
InsecureOIDCSkipNonce: true,
|
||||
},
|
||||
|
||||
Options: Options{
|
||||
|
|
|
|||
Loading…
Reference in New Issue