We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
all
1 parent f26c7b7 commit 23ba114Copy full SHA for 23ba114
services/oauth2_provider/access_token.go
@@ -88,6 +88,8 @@ func GrantAdditionalScopes(grantScopes string) auth.AccessTokenScope {
88
}
89
90
91
+ // since version 1.22, access tokens grant full access to the API
92
+ // with this access is reduced only if additional scopes are provided
93
accessTokenScope := auth.AccessTokenScope(strings.Join(tokenScopes, ","))
94
if accessTokenWithAdditionalScopes, err := accessTokenScope.Normalize(); err == nil && len(tokenScopes) > 0 {
95
return accessTokenWithAdditionalScopes
0 commit comments