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
- fill the `upstream_oauth2` section of the configuration file with the following parameters:
28
29
-`providers`:
29
30
-`id`: the previously generated ULID
@@ -73,6 +74,25 @@ In such cases, the `human_name` parameter of the provider configuration is used
73
74
74
75
If there is only one upstream provider configured and the local password database is disabled ([`passwords.enabled`](../reference/configuration.md#passwords) is set to `false`), the authentication service will automatically trigger an authorization flow with this provider.
75
76
77
+
## Backchannel logout
78
+
79
+
The service supports receiving [OpenID Connect Back-Channel Logout](https://openid.net/specs/openid-connect-backchannel-1_0.html) requests.
80
+
Those are notifications from the upstream provider that the user has logged out of the provider.
81
+
82
+
The backchannel logout URI must be configured in the provider as `https://<auth-service-domain>/upstream/backchannel-logout/<id>`, where `<id>` is the `id` of the provider.
83
+
84
+
By default, the authentication service will not perform any action when receiving a backchannel logout request.
85
+
The [`on_backchannel_logout`](../reference/configuration.md#upstream_oauth2) option can be used to configure what to do when receiving a backchannel logout request.
86
+
87
+
Possible values are:
88
+
89
+
-`do_nothing`: Do nothing, other than validating and logging the request
90
+
-`logout_browser_only`: Only log out the MAS 'browser session' started by this OIDC session
91
+
-`logout_all`: Log out all sessions started by this OIDC session, including MAS 'browser sessions' and client sessions
92
+
93
+
One important caveat is that `logout_all` will log out all sessions started by this upstream OIDC session, including 'remote' ones done through the Device Code flow.
94
+
Concretely, this means that if QR-code login is used to log in on a phone from a laptop, when MAS receives a backchannel logout request from the upstream provider for the laptop, MAS will also log out the session on the phone.
95
+
76
96
## Sample configurations
77
97
78
98
This section contains sample configurations for popular OIDC providers.
@@ -93,12 +113,11 @@ upstream_oauth2:
93
113
response_mode: "form_post"
94
114
token_endpoint_auth_method: "sign_in_with_apple"
95
115
sign_in_with_apple:
96
-
97
116
# Only one of the below should be filled for the private key
98
117
private_key_file: "<Location of the PEM-encoded private key file>"# TO BE FILLED
99
118
private_key: | # TO BE FILLED
100
119
# <Contents of the private key>
101
-
120
+
102
121
team_id: "<Team ID>"# TO BE FILLED
103
122
key_id: "<Key ID>"# TO BE FILLED
104
123
claims_imports:
@@ -386,6 +405,9 @@ Follow the [Getting Started Guide](https://www.keycloak.org/guides) to install K
0 commit comments