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 -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(String username, String password) authenticatePost(String username, String password) getJAASRoles(String username) Obtain list of JAAS roles for some user.
-
Constructor Details
-
AuthenticationHandler
public AuthenticationHandler(org.exoplatform.container.xml.InitParams params)
-
-
Method Details
-
authenticate
-
getJAASRoles
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"
-
authenticatePost
-