You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--secret= Secret used for signing (required) [$SECRET]
141
143
--whitelist= Only allow given email addresses, can be set multiple times [$WHITELIST]
@@ -243,6 +245,10 @@ All options can be supplied in any of the following ways, in the following prece
243
245
244
246
Default: `43200` (12 hours)
245
247
248
+
- `logout-redirect`
249
+
250
+
When set, users will be redirected to this URL following logout.
251
+
246
252
- `url-path`
247
253
248
254
Customise the path that this service uses to handle the callback following authentication.
@@ -443,6 +449,14 @@ Two criteria must be met for an `auth-host` to be used:
443
449
444
450
Please note: For Auth Host mode to work, you must ensure that requests to your auth-host are routed to the traefik-forward-auth container, as demonstrated with the service labels in the [docker-compose-auth.yml](https://github.com/thomseddon/traefik-forward-auth/blob/master/examples/traefik-v2/swarm/docker-compose-auth-host.yml) example and the [ingressroute resource](https://github.com/thomseddon/traefik-forward-auth/blob/master/examples/traefik-v2/kubernetes/advanced-separate-pod/traefik-forward-auth/ingress.yaml) in a kubernetes example.
445
451
452
+
### Logging Out
453
+
454
+
The service provides an endpoint to clear a users session and "log them out". The path is created by appending `/logout` to your configured `path` and so with the default settings it will be: `/_oauth/logout`.
455
+
456
+
You can use the `logout-redirect` config option to redirect users to another URL following logout (note: the user will not have a valid auth cookie after being logged out).
457
+
458
+
Note: This only clears the auth cookie from the users browser and as this service is stateless, it does not invalidate the cookie against future use. So if the cookie was recorded, for example, it could continue to be used for the duration of the cookie lifetime.
0 commit comments