Class LogoutRequestClientIDLookupFunction
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.profile.context.navigate.LogoutRequestClientIDLookupFunction
- All Implemented Interfaces:
Function<MessageContext,,com.nimbusds.oauth2.sdk.id.ClientID> ContextDataLookupFunction<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>
public class LogoutRequestClientIDLookupFunction
extends Object
implements ContextDataLookupFunction<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>
A function that returns client id of the OIDC logout request. This lookup locates client id from then request if
available from the client_id parameter or in the audience of the ID token hint. If multiple audiences exist, the
first one is assumed to be the client id.
If information is not available, null is returned.
- Since:
- 4.1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.nimbusds.oauth2.sdk.id.ClientIDapply(MessageContext input) protected StringgetClientIdFromJwt(com.nimbusds.jwt.SignedJWT jwt) Gets the first audience value of the givenSignedJWT.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger.
-
-
Constructor Details
-
LogoutRequestClientIDLookupFunction
public LogoutRequestClientIDLookupFunction()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<MessageContext,com.nimbusds.oauth2.sdk.id.ClientID>
-
getClientIdFromJwt
Gets the first audience value of the givenSignedJWT.- Parameters:
jwt- the source- Returns:
- the first item in the audience array, or null if none existed
-