Class AuthenticationHandler

  • All Implemented Interfaces:
    org.exoplatform.services.rest.resource.ResourceContainer

    public class AuthenticationHandler
    extends Object
    implements org.exoplatform.services.rest.resource.ResourceContainer
    This is a RESTful component that is invoked by central SSO servers like CAS server, to invoke Gatein authentication related queries during their own "Authentication process"
    Author:
    Sohil Shah
    • Constructor Detail

      • AuthenticationHandler

        public AuthenticationHandler​(org.exoplatform.container.xml.InitParams params)
    • Method Detail

      • getJAASRoles

        public String getJAASRoles​(String username)
        Obtain list of JAAS roles for some user. For example, for user root it can return String like: "users,administrators,organization" It's usually not needed because SSO authorization is done on portal side, but may be useful for some SSO implementations to use this callback and ask portal for roles.
        Parameters:
        username -
        Returns:
        String with roles in format like: "users,administrators,organization"
      • authenticatePost

        public String authenticatePost​(String username,
                                       String password)