DrBolle 9:30pm, 28 January 2012
Hi,

I develop a little desktop application that makes use of the Flickr API.
Therefore I studied the authorization mechanism via OAuth. So far I have successfully received a request token, asked the user in a dialog to open the authorisation URL in his favourite browser and to enter the verification code he got from there into my apps dialog. I could also get the final access token from request token and verification code. Calls to the API with this access token work fine.
So far so good. Now I wonder if I can store the access token permanently in some key store to avoid the hassle for the user to manually login via the browser every time he runs the desktop application. Does the access token expire after my desktop app ended? Or will it still be valid when the application is started a few days later?

Regards,
Thomas
admin
Sam Judson 7 years ago
OAuth 1.0 token's do not expire automatically. The user can revoke them, so if you are worried you can call the flickr.auth.oauth.checkToken method to make sure the token is still valid.
Groups Beta