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 Details

    • Authenticator

      public Authenticator()
  • Method Details

    • preAuthenticate

      public boolean preAuthenticate() throws IOException, Exception
      Throws:
      IOException
      Exception
    • authenticate

      protected String authenticate()
    • oAuthLogin

      public boolean oAuthLogin() throws IOException, Exception
      Main entry point for oAuth authentication.
      Throws:
      IOException
      Exception
    • oAuthGetAccessToken

      public String oAuthGetAccessToken() throws org.codehaus.jettison.json.JSONException
      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