[JIRA] (JOIDC-159) JWT-based client authentication fails for token endpoint when using non-MDDriven config

Henri Mikkonen (Jira) jira at shibboleth.atlassian.net
Tue May 16 10:21:59 UTC 2023


Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) *created* an issue

IdP Plugin - OIDC OP ( https://shibboleth.atlassian.net/browse/JOIDC?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 ) / Bug ( https://shibboleth.atlassian.net/browse/JOIDC-159?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 ) JOIDC-159 ( https://shibboleth.atlassian.net/browse/JOIDC-159?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 ) JWT-based client authentication fails for token endpoint when using non-MDDriven config ( https://shibboleth.atlassian.net/browse/JOIDC-159?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 3.4.0 Assignee: Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd ) Created: 16/May/23 6:21 AM Priority: Trivial Reporter: Henri Mikkonen ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A1614c4a5-c89e-4edc-9421-990bd6ea85fd )

The new *java-idp-plugin-oidc-config* plugin contains a wrong claimsValidator reference for AbstractOIDCSSOProfile, which is inherited by *OIDC.SSO* and *OAUTH2*.Token profiles. The referenced bean *shibboleth.oidc.DefaultJWTClaimsValidator* is not defined neither by common-config nor OP by default.

The corresponding MDDriven profiles (defined in the OP, to in the common config) points to a bean DefaultJWTClaimsValidator , which is defined in the OP’s relying party configuration.

The wrong reference leads into failed client JWT authentication in the token endpoint:

2023-05-16 08:17:46,171 - - WARN [net.shibboleth.idp.plugin.oidc.op.authn.impl.JWTCredentialValidator:214] - Credential Validator oauth2-jwt: JWT validation failed for client 'xxx': No ClaimsValidator found in configuration

( https://shibboleth.atlassian.net/browse/JOIDC-159#add-comment?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JOIDC-159#add-comment?atlOrigin=eyJpIjoiOTk4MTA5ODAwODVkNDA3Y2FjNDg5M2U0YzFjOWM4MzMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:6805d32 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230516/c77a0b4b/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-5777dd67-ca21-40e5-a514-fb334f9b6591
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230516/c77a0b4b/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-trivial-4db3a83b-aa4e-4eeb-aa2f-c6bcd6d6d242
Type: image/png
Size: 446 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230516/c77a0b4b/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-d8cd891a-1d66-4087-b0bb-a5200f1018cc
Type: image/png
Size: 345 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230516/c77a0b4b/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-2f8b8dd5-fa97-4a37-a6b4-f19ca7b0598b
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230516/c77a0b4b/attachment-0007.png>


More information about the commits mailing list