Startup, for example, or in general in cases where there is no user gesture involved. This is useful in cases when an app is doing the flow at app If you invoke the API in silent mode, the API will only return a token if the provider is able to UI and/or approval UI or for that matter any provider specific UI). You invoke the API in interactive mode, the user is shown UI, if necessary, to get the token (signin Indicating whether you want the API to be called in interactive mode or not (aka silent mode). When calling launchWebAuthFlow, you can pass a flag ( 'interactive': true in the example above) The provider will perform authentication and if appropriate, will show login and/or approval UI toĬhrome will capture that and invoke the callback of the app with the full redirect URL. Let us say that you are performing OAuth2 flow with a provider and have registered your app withĬlient id 123456789012345 and you want access to user's photos on the provider's website: The is whatever the URL is to do auth to the provider from a website. You are now ready to get the auth token by calling identity.getAuthToken. You need to update your manifest to include the client ID and scopes. Update your manifest with OAuth2 client ID and scopes Warning: Warning: If the app ID here does not match your app ID, an error will occur when your app calls
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |