Therefore it's important to have a consistent application ID during development. When you register your application in the Google OAuth console, you'll provide your application's ID, which will be checked during token requests. You can then upload your app to the apps and extensions management page (see Publish). You need to make sure the identity permission is in your manifest.
Apps can get OAuth2 tokens for these users using the getAuthToken API.Īpps that want to perform authentication with non-Google identity providers must call launchWebAuthFlow. How it worksĬhrome Apps users have a Google account associated with their profile. If your app uses its own server to authenticate users, you will need to use the latter.ĪPI Samples: Want to play with the code? Check out these samples, in particular the identity sample. Use the Chrome Identity API to authenticate users: the getAuthToken for users logged into their Google Account and the launchWebAuthFlow for users logged into a non-Google account. Web authentication protocols utilize HTTP features, but Chrome Apps run inside the app container they don’t load over HTTP and can’t perform redirects or set cookies.