0

I have an Android application which uses Google sign and sends the token ID to the server. So, the server identifies the user by the token ID.

I also have a Chrome extension and I would like to find the token ID but I cannot find anyway for doing so. I think the extension should bring the user through the OAuth authentication process like explained here. Unfortunately that procedures fails with: Authorization page could not be loaded

These are the scopes I'm setting in the manifest:

  • openid
  • email
  • profile

That would be so easy if there would be a Google web service which returns the token ID.

Community
  • 1
  • 1
Egidio Caprino
  • 553
  • 10
  • 18

1 Answers1

0

You can use the chrome.identity API to get OAuth2 access tokens. The getAuthToken gets an OAuth2 access token using the client ID and scopes specified in the oauth2 section of manifest.json.

For the error Authorization page could not be loaded, try removing the / from the permission URL.

Check these links:

Community
  • 1
  • 1
abielita
  • 13,147
  • 2
  • 17
  • 59