google / google/GTMAppAuth

Is there a way to add more scopes to the authorization

Open
#50 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Swift
Stars
448
Forks
247
Avg merge
2d 8h
Merged PRs (30d)
5

Description

Using the below code we provide the scopes. In the below code I added scope for mail. Is it possible for me to add more scopes to the current authState. Say I want to add calendar scope later to the existing authState. How should I do it.

[[OIDAuthorizationRequest alloc] initWithConfiguration:configuration
clientId:kClientID
clientSecret:kClientSecret
scopes:@[OIDScopeOpenID, OIDScopeProfile, @"https://mail.google.com/"]
redirectURL:redirectURI
responseType:OIDResponseTypeCode
additionalParameters:nil];

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.