File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Advanced configuration START
2
2
set $internal_error_message "NGINX / OpenID Connect login failure\n " ;
3
3
set $pkce_id "" ;
4
+ set $idp_sid "" ;
4
5
# resolver 8.8.8.8; # For DNS lookup of IdP endpoints;
5
6
subrequest_output_buffer_size 32k ; # To fit a complete tokenset response
6
7
gunzip on; # Decompress IdP responses if necessary
79
80
js_content oidc.logout;
80
81
}
81
82
83
+ location = /front_channel_logout {
84
+ status_zone "OIDC logout" ;
85
+ add_header Cache-Control "no-store" ;
86
+ default_type text/plain;
87
+ js_content oidc.handleFrontChannelLogout;
88
+ }
89
+
82
90
location = /_logout {
83
91
# This location is the default value of $oidc_logout_redirect (in case it wasn't configured)
84
92
default_type text/plain;
Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ proxy_cache_path /var/cache/nginx/jwk levels=1 keys_zone=jwk:64k max_size=1m;
20
20
keyval_zone zone=oidc_id_tokens:1M timeout=1h sync;
21
21
keyval_zone zone=oidc_access_tokens:1M timeout=1h sync;
22
22
keyval_zone zone=refresh_tokens:1M timeout=8h sync;
23
+ keyval_zone zone=oidc_sids:1M timeout=8h sync;
23
24
24
25
keyval $cookie_auth_token $session_jwt zone=oidc_id_tokens; # Exchange cookie for ID token(JWT)
25
26
keyval $cookie_auth_token $access_token zone=oidc_access_tokens; # Exchange cookie for access token
26
27
keyval $cookie_auth_token $refresh_token zone=refresh_tokens; # Exchange cookie for refresh token
27
28
keyval $request_id $new_session zone=oidc_id_tokens; # For initial session creation
28
29
keyval $request_id $new_access_token zone=oidc_access_tokens;
29
30
keyval $request_id $new_refresh zone=refresh_tokens; # ''
31
+ keyval $idp_sid $client_sid zone=oidc_sids;
30
32
31
33
auth_jwt_claim_set $jwt_audience aud; # In case aud is an array
32
34
js_import oidc from oidc/openid_connect.js;
You can’t perform that action at this time.
0 commit comments