influxdata / chronograf

Open source monitoring and visualization UI for the TICK stack
https://www.influxdata.com/time-series-platform/chronograf/
Other
1.52k stars 258 forks source link

feat(oauth): add possibility to specify OAuthLogoutEndpoint for logout from OAuth Identity provider #6073

Closed bednar closed 9 months ago

bednar commented 9 months ago

Related to https://github.com/influxdata/EAR/issues/4786

What was the problem?

The user remains logged in to the OAuth identity provider even after logging out from Chronograf. Therefore, during the next login to Chronograf, the user isn't prompted to enter credentials again.

What was the solution?

Chronograf now includes a new configuration property, OAuthLogoutEndpoint, which allows you to specify a logout callback. This callback is used to log out users from both Chronograf and their OAuth Identity Provider.

Customers will need to configure this property based on their respective identity providers. Below are the documentation links for a few common providers:

For instance, for a localhost instance of Chronograf using Auth0 as the provider, the configuration would look like this:

export OAUTH_LOGOUT_ENDPOINT=https://dev-xyz.us.auth0.com/v2/logout?returnTo=http://localhost:8080&client_id=abc