android封装oauth2,Android AccountAuthenticator和OAuth2
這肯定是可行的。來自Android AccountManager文檔:
Many servers support some notion of an authentication token, which can
be used to authenticate a request to the server without sending the
user's actual password. (Auth tokens are normally created with a
separate request which does include the user's credentials.)
AccountManager can generate auth tokens for applications, so the
application doesn't need to handle passwords directly. Auth tokens are
normally reusable and cached by AccountManager, but must be refreshed
periodically. It's the responsibility of applications to invalidate
auth tokens when they stop working so the AccountManager knows it
needs to regenerate them.
總結
以上是生活随笔為你收集整理的android封装oauth2,Android AccountAuthenticator和OAuth2的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android 设置资源,Android
- 下一篇: 电脑视频文件怎么转换格式(电脑视频文件怎