What does authTokenType mean?

I worked on an account manager in android to support a separate account for my application. I browsed many sites, but I could not understand the meaning of authTokenType . I want to know whether authTokenType generated authTokenType server for each user or the static string used by all users by the application itself.

Thanks in advance.

+6
source share
1 answer

authTokenType indicates which token you are trying to get when you call (among others) GetAuthToken methods in AccountManager.

Some account authenticators use only one authTokenType, while others, such as the authenticator for Google accounts, can issue many different types of tokens with different permissions. You can get a list of OAuth 2.0 tokens for Google on the Google OAuth 2.0 Playground . For example, AuthTokenType to retrieve a user's email from a Google account " https://www.googleapis.com/auth/userinfo.email ".

In authTokenType, nothing is generated by the server, and if you use the account manager to manage your own account type, you must decide what type of token should be for your accounts.

+6
source

Source: https://habr.com/ru/post/973155/


All Articles