Class JWTPrincipalWithUserRoles

  • All Implemented Interfaces:
    Principal, VerifiedUserRoles

    public class JWTPrincipalWithUserRoles
    extends JWTPrincipal
    implements VerifiedUserRoles
    JWT principal that contains username, token, claims and a list of roles the user has, so one can keep track of user-role mappings in an Identity Server external to Solr and pass the information to Solr in a signed JWT token. The role information can then be used to authorize requests without the need to maintain or lookup what roles each user belongs to.