mirror of
https://github.com/nais/wonderwall.git
synced 2026-05-07 00:46:56 +00:00
refactor(mock): ensure scope is correctly set for openid client
This commit is contained in:
@@ -73,6 +73,6 @@ func clientConfiguration(cfg *config.Config) *TestClientConfiguration {
|
||||
UILocales: "nb",
|
||||
ACRValues: "Level4",
|
||||
PostLogoutRedirectURI: "",
|
||||
Scopes: scopes.DefaultScopes(),
|
||||
Scopes: scopes.DefaultScopes().WithAdditional(cfg.OpenID.Scopes...),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ func Config() *config.Config {
|
||||
OpenID: config.OpenID{
|
||||
Provider: "test",
|
||||
ClientID: "client-id",
|
||||
Scopes: []string{"some-scope"},
|
||||
},
|
||||
SessionMaxLifetime: time.Hour,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user