OAuth instance state in Android

后端 未结 6 1173
眼角桃花
眼角桃花 2020-12-08 08:49

I\'m trying to use OAuth in an Android app. I have it working correctly but have sometimes run into a problem during the authentication phase. In Android, I launch the brows

6条回答
  •  猫巷女王i
    2020-12-08 09:22

    I had the same problem. All you need to persist is the requestToken and the tokenSecret that you get after calling retrieveRequestToken. In your onResume() method, recreate the consumer and the provider object as described here. That way you don't need to persist the whole consumer and provider objects and will still be able to retrieve the accessToken.

提交回复
热议问题