-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SDK-3911] Add support for providing a custom callback route #438
Conversation
app.get('/login', (req, res) => | ||
res.oidc.login({ | ||
returnTo: '/profile', | ||
authorizationParams: { | ||
redirect_uri: 'http://localhost:3000/callback', | ||
}, | ||
}) |
Check failure
Code scanning / CodeQL
Missing rate limiting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - couple of things
Co-authored-by: Adam Mcgrath <adam.mcgrath@auth0.com>
cc87d20
to
b404d06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Description
Adds support for providing a custom callback route similar to the existing support for a custom login and logout route. When providing this route, the
login
route should always be provided so that theauthorizationParams.redirect_uri
value can be provided as this can no longer be inferred from config/defaults.The options for this accept a
tokenEndpointParams
that is the same as the existing config option oftokenEndpointParams
, just with the added benefit that these can be configured per request not just once for the app.Checklist