vouch / vouch-proxy

an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
MIT License
2.92k stars 327 forks source link

Example: Logout implementation with Google Provider and NGINX #543

Open stephenlf opened 1 year ago

stephenlf commented 1 year ago

This is the logout implementation I use for the Vouch-integrated server we run at our company.

Unfortunately, Google doesn't support redirection after invoking the "Revoke Access Token" endpoint, meaning until Vouch can make the revocation request for us, we have to do it ourselves.

stephenlf commented 1 year ago

Current issues related logouts: https://github.com/vouch/vouch-proxy/pull/543 https://github.com/vouch/vouch-proxy/issues/522

This PR might help solve some of those by showing how to create and route to a logout server.