-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add logout options #877
Add logout options #877
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
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.
Just have a question about the federated
API.
* @example pass the federated logout param per https://auth0.com/docs/authenticate/login/logout/log-users-out-of-idps | ||
* | ||
* ```js | ||
* handleLogout(req, res, { logoutParams: { federated: '' } }); |
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.
Shouldn't it be federated: true
instead of an empty string?
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.
federated=true
would work, but Auth0 asks for https://YOUR_DOMAIN/v2/logout?federated
- in its docs and this is a closer approximation (which also works)
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.
$ node -e "foo=new URL('https://YOUR_DOMAIN/v2/logout'); foo.searchParams.set('federated', ''); console.log(foo.toString())"
https://your_domain/v2/logout?federated=
📋 Changes
For example, to pass the federated logout param per https://auth0.com/docs/authenticate/login/logout/log-users-out-of-idps
📎 References
fixes #842