Android AccountManager authToken and OAuth

前端 未结 1 1231
南方客
南方客 2021-02-09 16:14

My task is to write IMAP e-mail client for Gmail. So far I know client should authenticate through OAuth (there\'s also a java library for IMAP auth by Google). But I\'d like to

相关标签:
1条回答
  • 2021-02-09 16:41

    Have you tried using "oauth2:https://mail.google.com/" as the "auth token type" (authTokenType parameter) when calling AccountManager.getAutToken() ?

    According what is said at 46:50 in the talk you mentioned, it should work.

    By the way, this page describes how to get an OAuth2 token for Google Tasks, and it has a link to a code sample. It also makes it sounds like it is just a matter of providing the right authTokenType parameter.

    0 讨论(0)
提交回复
热议问题