Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Multiple Active Refresh Tokens

ANSWERED

Im developing an OS X app and have noticed that the refresh tokens are invalidated after spawning another token.

 

This invalidates logins on other computers.

 

What methods can I use to get around this?

 

Thanks

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

A Mac OS X app is considered a "public client" by OAuth 2.0's definition:

 

public
      Clients incapable of maintaining the confidentiality of their
      credentials (e.g., clients executing on the device used by the
      resource owner, such as an installed native application or a web
      browser-based application), and incapable of secure client
      authentication via any other means.

 

Because it is not possible for a public client to keep your client secret truly a secret, your app should be using the Implicit Grant Flow instead of the Authorization Code Grant Flow. The Implicit Grant Flow allows for access tokens up to 1 year, but does not have a refresh token flow.

 

If you would like to use the Authorization Code Grant Flow, you will need to create a Web service that continually refreshes the access token and returns it securely to each instance of a Mac OS X app.

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

A Mac OS X app is considered a "public client" by OAuth 2.0's definition:

 

public
      Clients incapable of maintaining the confidentiality of their
      credentials (e.g., clients executing on the device used by the
      resource owner, such as an installed native application or a web
      browser-based application), and incapable of secure client
      authentication via any other means.

 

Because it is not possible for a public client to keep your client secret truly a secret, your app should be using the Implicit Grant Flow instead of the Authorization Code Grant Flow. The Implicit Grant Flow allows for access tokens up to 1 year, but does not have a refresh token flow.

 

If you would like to use the Authorization Code Grant Flow, you will need to create a Web service that continually refreshes the access token and returns it securely to each instance of a Mac OS X app.

Best Answer
0 Votes

Thanks!, I will ammend!

 

btw the app is 'FitJet':

 

https://itunes.apple.com/us/app/fitjet-for-fitbit/id1104115783?mt=12

 

Best Answer
0 Votes