Re: [OAUTH-WG] Lifetime of refresh token

2015-08-24 Thread Bill Mills
You could have a refresh token that never expires.  Having to use the refresh token to get a new access token gives you a single control point to allow checking whether that refresh token should still be valid.  Means the RS doesn't have to do that stuff. On Monday, August 24, 2015 8:09

Re: [OAUTH-WG] Lifetime of refresh token

2015-08-24 Thread Jim Manico
There is a good debate and discussion on refresh tokens on StackOverflow. http://stackoverflow.com/questions/3487991/why-does-oauth-v2-have-both-access-and-refresh-tokens Is this a good place to send developers to answer refresh token questions, and if not, can the illustrious smart people on t

Re: [OAUTH-WG] Lifetime of refresh token

2015-08-24 Thread John Bradley
I think Nat’s diagram about the problems of doing pseudo authentication with OAuth is being taken out of context. The refresh token dosen’t expire, it is revoked by the user or system. In some cases refresh tokens are automatically revoked if the users session to the AS ends. I think AOL typi

Re: [OAUTH-WG] Lifetime of refresh token

2015-08-24 Thread Justin Richer
The lifetime of a refresh token is up to the AS — they can expire, be revoked, etc. The difference between a refresh token and an access token is the audience: the refresh token only goes back to the AS, the access token goes to the RS. Also, just getting an access token doesn’t mean the user’

Re: [OAUTH-WG] Is it allow to add custom attribute to access token response?

2015-08-24 Thread Donghwan Kim
Hi, > Requests to the token endpoint are URL form encoded not JSON in your example. My bad. According to http://tools.ietf.org/html/rfc6749#section-4.3, application/x-www-form-urlencoded not application/json is correct for token endpoint request's content type. Right? Thanks, -- Donghwan On S

[OAUTH-WG] Lifetime of refresh token

2015-08-24 Thread Donghwan Kim
Hi, According to Figure 2 from http://tools.ietf.org/html/rfc6749#section-1.5, refresh token can be used to refresh an expired access token without requesting resource owner to sign in again (uncomfortable experience). However, if it's true, isn't it that refresh token might be used to request a n

Re: [OAUTH-WG] Is it allow to add custom attribute to access token response?

2015-08-24 Thread Donghwan Kim
Hi folks, First off, I appreciate your answers. What I try to do with OAuth is to design a set of APIs which allow to write application without server in a standard-compliant way and I chose OAuth for the social web. Because the current API I work on uses a kind of Form-based authentication ( htt