Class LoginActionsServiceChecks.AuthenticationSessionUserIdMatchesOneFromToken

java.lang.Object
org.keycloak.services.resources.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 Details

    • AuthenticationSessionUserIdMatchesOneFromToken

      public AuthenticationSessionUserIdMatchesOneFromToken(ActionTokenContext<?> context)
  • Method Details

    • 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