File tree 2 files changed +336
-248
lines changed
2 files changed +336
-248
lines changed Original file line number Diff line number Diff line change 45
45
proxy_set_header Content-Type "application/x-www-form-urlencoded" ;
46
46
proxy_set_header Authorization $arg_secret_basic ;
47
47
proxy_pass $oidc_token_endpoint ;
48
- }
48
+ }
49
49
50
50
location = /_refresh {
51
51
# This location is called by oidcAuth() when performing a token refresh. We
62
62
proxy_pass $oidc_token_endpoint ;
63
63
}
64
64
65
- location = /_id_token_validation {
66
- # This location is called by oidcCodeExchange() and oidcRefreshRequest(). We use
67
- # the auth_jwt_module to validate the OpenID Connect token response, as per:
68
- # https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
65
+ location = /_token_validation {
66
+ # Internal location to verify any JWT (e.g., id_token, logout_token)
67
+ # using the auth_jwt module. Extracts the claims and returns them as JSON.
69
68
internal ;
70
69
auth_jwt "" token=$arg_token ;
71
- js_content oidc.validateIdToken ;
70
+ js_content oidc.extractTokenClaims ;
72
71
error_page 500 502 504 @oidc_error;
73
72
}
74
73
You can’t perform that action at this time.
0 commit comments