This repository has been archived by the owner. It is now read-only.
Add support for "access_type" oauth parameter, for requesting refresh tokens #2589
Comments
|
from meeting: |
|
How feasible would it be to get just these two components into train-40?
And iterate on any changes to the UI from there? IIUC that change can safely go live on the same train as the oauth-server backend changes, since it doesn't change how any existing APIs will be called. |
This will likely cause other items to get bumped. A full cycle, starting with train-41, is more comfortable. |
|
nod, especially coming into whistler |
|
@zaach sorry, pinching this issue for @seanmonstar who expressed interest in having a go at it this week :-) |
|
This was fixed by #2615 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

In mozilla/fxa-oauth-server#260 we're moving towards a "refresh token" model for oauth tokens. In this new world, access tokens will expire after some short timeframe. For reliers that require ongoing access to profile information, they can request a special "refresh token" that will allow them to mint new access tokens at will.
For context, the overall flow is quite similr to the way that Google does it [1] and goes like this:
GET /authorization?client_id=blahblah&access_type=offlineto indicate they want a refresh token.POST /authorization { assertion: blahblah, access_type: "offline" }to complete the dance, then redirects back to the relier.POST /token { code: "XYZ" }and gets back a refresh_token along with the usual access_token:{ access_token: "ABCDEF", refresh_token: "UVWXYZ" }.POST /token { refresh_token: "UVWXYZ" }, without involving the user again.The content-server's responsibilities in this dance will be:
access_type=[online|offline]when beginning the oauth dance, and remember that state.access_typeparameter when creating the oauth code at the end of the dance./cc @seanmonstar
[1] https://developers.google.com/identity/protocols/OAuth2WebServer#offline
The text was updated successfully, but these errors were encountered: