@@ -268,7 +268,7 @@ func (r *queryResolver) SignUpEnabled(ctx context.Context) (bool, error) {
|
||||
|
||||
// Oauth2ScopesSupported is the resolver for the oauth2ScopesSupported field.
|
||||
func (r *queryResolver) Oauth2ScopesSupported(ctx context.Context) ([]string, error) {
|
||||
apiScopes := r.iam.Authorizer.APIScopes()
|
||||
apiScopes := r.iam.OAuth2ScopeSet.APIScopes()
|
||||
|
||||
scopes := make([]string, len(apiScopes))
|
||||
for i, scope := range apiScopes {
|
||||
|
||||
@@ -40,7 +40,7 @@ func (r *mutationResolver) CreateOAuth2AccessToken(ctx context.Context, input ty
|
||||
Name: strings.TrimSpace(input.Name),
|
||||
ExpiresAt: input.ExpiresAt,
|
||||
Scopes: scopes,
|
||||
AllowedAPIScopes: r.iam.Authorizer.APIScopes(),
|
||||
AllowedAPIScopes: r.iam.OAuth2ScopeSet.APIScopes(),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user