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
|
insecureSkipNonce: true
|
||||||
audienceClaims: [aud]
|
audienceClaims: [aud]
|
||||||
extraAudiences: []
|
extraAudiences: []
|
||||||
|
cookieRefreshName: 'hsdpamcookie'
|
||||||
loginURLParameters:
|
loginURLParameters:
|
||||||
- name: approval_prompt
|
- name: approval_prompt
|
||||||
default:
|
default:
|
||||||
|
|
@ -151,14 +152,13 @@ redirect_url="http://localhost:4180/oauth2/callback"
|
||||||
Tenant: "common",
|
Tenant: "common",
|
||||||
},
|
},
|
||||||
OIDCConfig: options.OIDCOptions{
|
OIDCConfig: options.OIDCOptions{
|
||||||
GroupsClaim: "groups",
|
GroupsClaim: "groups",
|
||||||
EmailClaim: "email",
|
EmailClaim: "email",
|
||||||
UserIDClaim: "email",
|
UserIDClaim: "email",
|
||||||
AudienceClaims: []string{"aud"},
|
AudienceClaims: []string{"aud"},
|
||||||
ExtraAudiences: []string{},
|
ExtraAudiences: []string{},
|
||||||
InsecureSkipNonce: true,
|
InsecureSkipNonce: true,
|
||||||
EnableCookieRefresh: false,
|
CookieRefreshName: "hsdpamcookie",
|
||||||
CookieRefreshName: "hsdpamcookie",
|
|
||||||
},
|
},
|
||||||
LoginURLParameters: []options.LoginURLParameter{
|
LoginURLParameters: []options.LoginURLParameter{
|
||||||
{Name: "approval_prompt", Default: []string{"force"}},
|
{Name: "approval_prompt", Default: []string{"force"}},
|
||||||
|
|
|
||||||
|
|
@ -36,16 +36,14 @@ var _ = Describe("Load", func() {
|
||||||
},
|
},
|
||||||
|
|
||||||
LegacyProvider: LegacyProvider{
|
LegacyProvider: LegacyProvider{
|
||||||
ProviderType: "google",
|
ProviderType: "google",
|
||||||
AzureTenant: "common",
|
AzureTenant: "common",
|
||||||
ApprovalPrompt: "force",
|
ApprovalPrompt: "force",
|
||||||
UserIDClaim: "email",
|
UserIDClaim: "email",
|
||||||
OIDCEmailClaim: "email",
|
OIDCEmailClaim: "email",
|
||||||
OIDCGroupsClaim: "groups",
|
OIDCGroupsClaim: "groups",
|
||||||
OIDCAudienceClaims: []string{"aud"},
|
OIDCAudienceClaims: []string{"aud"},
|
||||||
InsecureOIDCSkipNonce: true,
|
InsecureOIDCSkipNonce: true,
|
||||||
OIDCEnableCookieRefresh: false,
|
|
||||||
OIDCCookieRefreshName: "hsdpamcookie",
|
|
||||||
},
|
},
|
||||||
|
|
||||||
Options: Options{
|
Options: Options{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue