refactor(mock): ensure scope is correctly set for openid client

This commit is contained in:
Trong Huu Nguyen
2022-07-14 10:04:34 +02:00
parent aead53c60a
commit 9c29bb180b
2 changed files with 2 additions and 1 deletions

View File

@@ -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...),
}
}

View File

@@ -14,6 +14,7 @@ func Config() *config.Config {
OpenID: config.OpenID{
Provider: "test",
ClientID: "client-id",
Scopes: []string{"some-scope"},
},
SessionMaxLifetime: time.Hour,
}