default scopes added automatically?
klwinkel opened this issue · 1 comments
klwinkel commented
I am requesting DriveFile acces for my app, but always also get email and userprofile too in the window were the user needs to grant access.
is this normal?
this is my code:
GTMOAuth2ViewControllerTouch *authViewController =
[[GTMOAuth2ViewControllerTouch alloc] initWithScope:kGTLRAuthScopeDriveFile
clientID:kClientId
clientSecret:nil
keychainItemName:kKeychainItemName
delegate:self
finishedSelector:finishedSelector];
thomasvl commented
Since most apps end up wanting to disable a little info about the user (Logged in as User user@gmail.com), the code defaults to adding the scopes and fetching that info. See the header for more info:
https://github.com/google/gtm-oauth2/blob/master/Source/GTMOAuth2SignIn.h#L95-L104