Return result of onLogout
The auth-saml plugin would benefit from supporting a full logout process.
Use case:
- The user logout from peertube
- The auth-saml plugin craft a
logoutUrlthat the user must visit to complete its logout process - The server respond to the client with that
logoutUrlasredirectUrl - The client redirect the user to the
redirectUrl
This MR contains the following changes:
- Give access to the request during the
onLogoutcall - Use the return value of the
onLogoutmethod of an auth provider as theredirectUrl - Forward the
logoutUrlto the client in therevoke-tokenresponse - The client redirect the user to the
logoutUrlif it is exists
Edited by Louis