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

@ -34,6 +34,8 @@ type Client interface {
AccessTokenType() AccessTokenType
IDTokenLifetime() time.Duration
DevMode() bool
//AssertAdditionalIdTokenScopes() bool
//AssertAdditionalAccessTokenScopes() bool
RestrictAdditionalIdTokenScopes() func(scopes []string) []string
RestrictAdditionalAccessTokenScopes() func(scopes []string) []string
IsScopeAllowed(scope string) bool