Configuring OIDC to use client_credentials - InvalidMessageContext

Lipscomb, Gary glipscomb at csu.edu.au
Thu Aug 29 02:58:30 UTC 2024


Hi List,

Environment

  *
RHEL 8
  *
IdP 4.3.3  (currently  migrating to 5.1.3)
  *
Plugins
     *
Plugin: net.shibboleth.oidc.common      Current Version: 2.2.1
     *
Plugin: net.shibboleth.idp.plugin.oidc.config   Current Version: 1.0.1
     *
Plugin: net.shibboleth.idp.plugin.oidc.op       Current Version: 3.4.0
  *
Java openjdk version "11.0.24"

I think I've got the authentication working but I'm getting this in the log

2024-08-29 10:13:54,603 - IP REDACTED - INFO [net.shibboleth.idp.plugin.oidc.op.authn.impl.OIDCClientInfoCredentialValidator:152] - Credential Validator oauth2-clientinfo: Login by 'https://REDACTED.csu.edu.au/oidc' succeeded
2024-08-29 10:13:54,603 -IP REDACTED - INFO [net.shibboleth.idp.authn.impl.FinalizeAuthentication:196] - Profile Action FinalizeAuthentication: Principal https://REDACTED.csu.edu.au/oidc authenticated
2024-08-29 10:13:54,604 - IP REDACTED - ERROR [net.shibboleth.idp.plugin.oidc.op.profile.impl.InitializeRelyingPartyContext:144] - resource/audience ID Unable to obtain Profile Action InitializeRelyingPartyContext:
2024-08-29 10:13:54,605 - IP REDACTED - WARN [org.opensaml.profile.action.impl.LogEvent:101] - A non-proceed event occurred while processing the request: InvalidMessageContext
2024-08-29 10:13:54,606 -IP REDACTED - INFO [Shibboleth-Audit.OIDC.Token:338] - 54.86.50.139|2024-08-29T00:13:54.582866Z|2024-08-29T00:13:54.606339Z|https://REDACTED.csu.edu.au/oidc|https://archibusqaupgrade.csu.edu.au/oidc|||2024-08-29T00:13:54.603402Z||https://REDACTED.csu.edu.au/oidc||false|||TokenRequest|TokenErrorResponse|||||PostmanRuntime/7.41.2

I've added
                <ref bean="OAUTH2.Token" />
                <ref bean="OAUTH2.TokenAudience" />
to the DefaultRelyingParty and my RelyingPartyOverrides but not to the UnverifiedRelyingParty

The SP information is held in metadata
        <oidcmd:OAuthRPExtensions
          grant_types="client_credentials"
          response_types="code token id_token"
          token_endpoint_auth_method="client_secret_post"
          scopes="openid profile" />
      </md:Extensions>


Any help on troubleshooting would be greatly appreciated

regards

Gary




Gary Lipscomb

Technical Officer, Systems

IT Infrastructure & Security | Division of Information Technology

Charles Sturt University, Bathurst, NSW 2795





[Charles Sturt]<https://www.csu.edu.au>

________________________________

LEGAL NOTICE

This email (including correspondence comprising an email chain and any attachment) is confidential and is intended for the use of the addressee(s) only. If you are not the intended recipient of this email, you must not copy, distribute, take any action in reliance on it or disclose it to anyone.
Any confidentiality is not waived or lost by reason of mistaken delivery. Any email should be checked for viruses and defects before opening. Charles Sturt University does not accept liability for viruses or any consequence which arise as a result of this email transmission. Email communications with Charles Sturt University may be subject to automated email filtering, which could result in the delay or deletion of a legitimate email before it is read at Charles Sturt University. The views expressed in this email are not necessarily those of Charles Sturt University.

Charles Sturt University in Australia<https://www.csu.edu.au> The Grange Chancellery, Panorama Avenue, Bathurst NSW Australia 2795 (ABN: 83 878 708 551). Charles Sturt University - TEQSA Provider Identification: PRV12018 (Australian University). CRICOS Provider: 00005F.

Consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20240829/5d501881/attachment.htm>


More information about the users mailing list