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 Summary
Constructors Constructor Description AuthenticationHandler(org.exoplatform.container.xml.InitParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringauthenticate(String username, String password)StringauthenticatePost(String username, String password)StringgetJAASRoles(String username)Obtain list of JAAS roles for some user.
-
-
-
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:
Stringwith roles in format like: "users,administrators,organization"
-
-