Get Microsoft Exchange Authentication token through Android's AccountManager

蓝咒 提交于 2019-12-06 12:06:24

After some hours of research in the sources I've found this code:

public Bundle  getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) throws NetworkErrorException {
     return null;
}

This means, the android exchange Authenticator doesn't provide the Tokenbased Authentication for Exchange-Server...

You have to pass the proper token type for Exchange accounts. I don't know what it is offhand, but I doubt it would be 'test'. Research what the proper token type is (if supported) first. Otherwise your code looks OK. How to authenticate to Exchange using a token is another matter though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!