java - Google App Engine Cloud Endpoints OAuth 2.0 Scopes -


i'm trying follow following guide: https://developers.google.com/appengine/docs/java/endpoints/auth

i've followed steps , added client id , user parameter when null throw oauthrequestexception exception.

when deploy google , access api using api explorer expected unauthorised exception when accessing api without oauth. great works far!

it suggests switch oauth 2.0 toggle. , message saying:

* api not declare scopes. can manually add scopes using box below

the message directs me to: http://code.google.com/apis/accounts/docs/oauth2.html learn more scopes.

but there limited information scopes on suggested page. i'm new oauth , despite searching google , stackoverflow i'm not sure scope is? how declare on in api? when manually add api explorer prompt error message saying invalid_scope. valid scope?

for authentication work cloud endpoints need request scope:

https://www.googleapis.com/auth/userinfo.email 

the cloud endpoints library needs user's email address create user entity it.

see https://developers.google.com/appengine/docs/java/endpoints/consume_js#adding-oath-authentication reference.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -