Class LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken

  • All Implemented Interfaces:
    org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
    Enclosing class:
    LoginActionsServiceChecks

    public static class LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken
    extends Object
    implements org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
    This check verifies that user ID (subject) from the token matches the one from the authentication session.
    • Constructor Detail

      • AuthenticationSessionUserIdMatchesOneFromToken

        public AuthenticationSessionUserIdMatchesOneFromToken​(ActionTokenContext<?> context)
    • Method Detail

      • test

        public boolean test​(org.keycloak.representations.JsonWebToken t)
                     throws org.keycloak.common.VerificationException
        Specified by:
        test in interface org.keycloak.TokenVerifier.Predicate<org.keycloak.representations.JsonWebToken>
        Throws:
        org.keycloak.common.VerificationException