Interface JWTSSOProvider
-
- All Superinterfaces:
com.nimbusds.jose.jca.JCAAware<com.nimbusds.jose.jca.JCAContext>
,com.nimbusds.jose.JOSEProvider
,com.nimbusds.jose.JWSProvider
,com.nimbusds.jose.JWSVerifier
- All Known Implementing Classes:
CustomJWTSSOProvider
,MSEntraJWTSSOProvider
,SyncopeJWTSSOProvider
public interface JWTSSOProvider extends com.nimbusds.jose.JWSVerifier
Enables a generic mechanism for JWT validation and subject resolution which allows to plug in implementations recognizing JWT produced by third parties.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getIssuer()
Gives the identifier for the JWT issuer verified by this instance.Pair<User,Set<SyncopeGrantedAuthority>>
resolve(com.nimbusds.jwt.JWTClaimsSet jwtClaims)
Attempts to resolve the given JWT claims into internalUser
and authorities.
-
-
-
Method Detail
-
getIssuer
String getIssuer()
Gives the identifier for the JWT issuer verified by this instance.- Returns:
- identifier for the JWT issuer verified by this instance
-
resolve
Pair<User,Set<SyncopeGrantedAuthority>> resolve(com.nimbusds.jwt.JWTClaimsSet jwtClaims)
Attempts to resolve the given JWT claims into internalUser
and authorities. IMPORTANT: this is not invoked for theadmin
super-user.- Parameters:
jwtClaims
- JWT claims- Returns:
- internal User, with authorities, matching the provided JWT claims, if found; otherwise null
-
-