Skip to content

Commit

Permalink
Document default filters wrt. grantCallback route (#1700)
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Hühne <[email protected]>
  • Loading branch information
k-nut authored Feb 5, 2021
1 parent 114b1e7 commit 0313047
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/tutorials/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ It works as follows:
1. The provider redirects the user back to Skipper with an authorization code, using the
callback URL parameter which was part of the previous redirect. The callback route must
have a `grantCallback()` filter defined. Skipper automatically adds this callback route for you
when the OAuth2 authorization grant flow feature is enabled.
when the OAuth2 authorization grant flow feature is enabled. Note that the automatically added
callback route does not apply [default filters](../../operation/operation/#default-filters).
If you need default filters to be applied to the callback route as well, please register
the route manually in your routes files.
1. Skipper calls the provider's token URL with the authorization code, and receives a response
with the access and refresh tokens.
1. Skipper stores the tokens in an `oauth-grant`<sup>1</sup> cookie which is stored in the user's browser.
Expand Down

0 comments on commit 0313047

Please sign in to comment.