Class AuthenticationHandler

java.lang.Object
org.gatein.sso.authentication.callback.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 Details

    • AuthenticationHandler

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

    • authenticate

      public String authenticate(String username, String password)
    • 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)