mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
feat: register CyberArk Identity app_id JWS header for joserfc
CyberArk Identity (Idaptive) adds a private 'app_id' claim to the ID token JWS header. Since the authlib.jose -> joserfc migration, joserfc rejects unknown header params (UnsupportedHeaderError), breaking OIDC login for CyberArk. Register app_id, mirroring the existing Apereo CAS client_id fix.
This commit is contained in:
parent
01f4282f1f
commit
79072ab27d
1 changed files with 6 additions and 0 deletions
|
|
@ -199,6 +199,12 @@ JWSRegistry.default_header_registry.setdefault(
|
|||
'client_id',
|
||||
HeaderParameter('OAuth client identifier', 'str'),
|
||||
)
|
||||
# CyberArk Identity (Idaptive) includes a private app_id in ID token JWS headers;
|
||||
# register it so joserfc does not reject the token with UnsupportedHeaderError.
|
||||
JWSRegistry.default_header_registry.setdefault(
|
||||
'app_id',
|
||||
HeaderParameter('CyberArk Identity application identifier', 'str'),
|
||||
)
|
||||
|
||||
|
||||
def _normalize_token_expiry(token: dict) -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue