Package org.gluu.oxtrust.action
Class Authenticator
java.lang.Object
org.gluu.oxtrust.action.Authenticator
- All Implemented Interfaces:
Serializable
@Named("authenticator")
@RequestScoped
public class Authenticator
extends Object
implements Serializable
Provides authentication using oAuth
- Author:
- Reda Zerrad Date: 05.11.2012, Yuriy Movchan Date: 02.12.2013
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringAfter successful login, oxAuth will redirect user to this method.booleanMain entry point for oAuth authentication.boolean
-
Constructor Details
-
Authenticator
public Authenticator()
-
-
Method Details
-
preAuthenticate
- Throws:
IOExceptionException
-
authenticate
-
oAuthLogin
Main entry point for oAuth authentication.- Throws:
IOExceptionException
-
oAuthGetAccessToken
After successful login, oxAuth will redirect user to this method. Obtains access token using authorization code and verifies if access token is valid- Returns:
- Throws:
org.codehaus.jettison.json.JSONException
-