Class TokenIntrospectorRolesHelper

java.lang.Object
io.jmix.authserver.introspection.TokenIntrospectorRolesHelper

@Component("authsr_TokenIntrospectorRolesHelper") public class TokenIntrospectorRolesHelper extends Object
The class is used for converting a list of role codes specified for the client in properties file into the list of GrantedAuthority.
See Also:
  • Constructor Details

  • Method Details

    • getClientGrantedAuthorities

      public List<org.springframework.security.core.GrantedAuthority> getClientGrantedAuthorities(String clientId)
      Converts a list of roles specified for the client in properties file into the list of GrantedAuthority.
      Parameters:
      clientId - a client id
      Returns:
      a list of RoleGrantedAuthority