Class DefaultCallbackLogic

All Implemented Interfaces:
CallbackLogic

public class DefaultCallbackLogic extends AbstractExceptionAwareLogic implements CallbackLogic

Default callback logic:

The credentials are extracted from the current request to fetch the user profile (from the identity provider) which is then saved in the web session. Finally, the user is redirected back to the originally requested url (or to the defaultUrl).

Since:
1.9.0
Author:
Jerome Leleu
  • Field Details

  • Constructor Details

    • DefaultCallbackLogic

      public DefaultCallbackLogic()
  • Method Details

    • perform

      public Object perform(WebContext webContext, SessionStore sessionStore, Config config, HttpActionAdapter httpActionAdapter, String inputDefaultUrl, Boolean inputRenewSession, String defaultClient)
      Description copied from interface: CallbackLogic
      Perform the callback logic.
      Specified by:
      perform in interface CallbackLogic
      Parameters:
      webContext - the web context
      sessionStore - the session store
      config - the security configuration
      httpActionAdapter - the HTTP action adapter
      inputDefaultUrl - the default url
      inputRenewSession - whether the session must be renewed
      defaultClient - the default client
      Returns:
      the resulting action of the callback
    • saveUserProfile

      protected void saveUserProfile(WebContext context, SessionStore sessionStore, Config config, UserProfile profile, boolean saveProfileInSession, boolean multiProfile, boolean renewSession)
    • renewSession

      protected void renewSession(WebContext context, SessionStore sessionStore, Config config)
    • redirectToOriginallyRequestedUrl

      protected HttpAction redirectToOriginallyRequestedUrl(WebContext context, SessionStore sessionStore, String defaultUrl)
    • getClientFinder

      public ClientFinder getClientFinder()
    • setClientFinder

      public void setClientFinder(ClientFinder clientFinder)
    • getSavedRequestHandler

      public SavedRequestHandler getSavedRequestHandler()
    • setSavedRequestHandler

      public void setSavedRequestHandler(SavedRequestHandler savedRequestHandler)
    • toString

      public String toString()
      Overrides:
      toString in class Object