sirkitree/angular-directive.g-signin

How to correctly specify various scopes?

Closed this issue · 1 comments

(new lines for readability)

Works:

<google-plus-signin 
clientid="..." 
accesstype="offline" 
scope= 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email'>
</google-plus-signin>

Doesn't work:

<google-plus-signin 
clientid="..." 
accesstype="offline" 
scope= 'https://www.googleapis.com/auth/gmail.modify https://www.googleapis.com/auth/gmail.compose https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/contacts.readonly'>
</google-plus-signin>

error_400__oauth2_error___1_and_google_gmail_api

I'll investigate it further but maybe you'll know from top of your head...

OK.

Now I see it: https://github.com/sirkitree/angular-directive.g-signin/blob/master/google-plus-signin.js#L27

requestvisibleactions: 'http://schemas.google.com/AddActivity'

Obviously.