Shouldn't Android AccountManager Store OAuth Tokens on a Per-App/UID Basis?

前端 未结 4 749
既然无缘
既然无缘 2021-01-29 19:18

Android\'s AccountManager appears to fetch the same cached auth token for apps with different UIDs - is this secure? It does not seem compatible with OAuth2, since access tokens

4条回答
  •  梦毁少年i
    2021-01-29 20:22

    I'm facing the same architectural problem for an app.

    The solution that I got is to associate/hash the oauth token, with the app vendor token (ex. the token that facebook give to an app), and to device id (android_id). So only the app authorized, for the device is able to use the token from account manager.

    Of course, it's just a new layer of security, but no bullet proof.

提交回复
热议问题