javascript - Cannot access endpoints API from chrome extension -


i using chrome extension calls chrome.identity api access token (using google plus login scope).

i try call google endpoints api token. this, set request header 'authorization'='bearer <token>' format.

i have added client_id manifest.json of chrome extension list of allowed client ids endpoints api. but, still cannot connect it, when run api on localhost.

the allowed list of client ids includes clients defined on api credentials page on google developers console. chrome extension present client in list, it's client_id different.

the error keep getting on server side:

warning  2016-04-22 03:01:35,068 users_id_token.py:372] oauth token doesn't include email address. 

can please give me pointers try? please let me know if clarification necessary.

the google oauth2 apis commons of types of clients, answer in general applies all.

the google plus login scope(plus.login or plus.me) not return email address, in order authenticated user's email address need pass additional scope https://www.googleapis.com/auth/userinfo.email returns users email address. hope looking for.

if wants experiment it, visit https://developers.google.com/oauthplayground/


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -