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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -