fix: restrict additional scopes

This commit is contained in:
Fabiennne 2020-11-02 09:51:45 +01:00
parent 6ba72be7ea
commit f48d6f8361
4 changed files with 24 additions and 1 deletions

View file

@ -171,6 +171,13 @@ func (c *ConfClient) DevMode() bool {
func (c *ConfClient) AllowedScopes() []string {
return nil
}
//func (c *ConfClient) AssertAdditionalIdTokenScopes() bool {
// return false
//}
//func (c *ConfClient) AssertAdditionalAccessTokenScopes() bool {
// return false
//}
func (c *ConfClient) RestrictAdditionalIdTokenScopes() func(scopes []string) []string {
return func(scopes []string) []string {
return scopes