Logout extensibility #1253
finkinfridom
started this conversation in
Feature Requests & Ideas
Replies: 2 comments 2 replies
-
I agree there could be more extensibility on the frontend admin UI, but you probably don't need that for what you are trying to do. Take a look at custom endpoints documentation. https://payloadcms.com/docs/rest-api/overview#custom-endpoints You can use that to extend your auth collections api routes. Add an endpoint using the path /users/logout that removes the cookie or whatever else your SSO logout needs are. Does that answer your immediate needs? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I created a PR here: #1274 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
logout
button in the<DefaultNav/>
component doesn't allow any kind of extensibility.Let's say I'm integrating an SSO workflow where, especially at logout, the user must be redirected to the IdP logout page. At the moment there's no way to change the logout link nor force a
res.redirect
into thehooks.afterLogout
method (as it throws an exception within expressjs).Beta Was this translation helpful? Give feedback.
All reactions