Package org.intermine.web.struts.oauth2
Class Callback
- java.lang.Object
-
- org.apache.struts.action.Action
-
- org.intermine.web.struts.InterMineAction
-
- org.intermine.web.logic.profile.LoginHandler
-
- org.intermine.web.struts.oauth2.Callback
-
public class Callback extends LoginHandler
The controller that handles the requests made after the user has visited their authorisation provider to log-in. That provider will then send them off here with a code that we need to use to access their user details via a two-step process (get an authorisation token, and then get user details). If all is well, this controller will log the user in, and forward the request on to the mymine page.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description Callback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.struts.action.ActionForward
execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method called for login in-
Methods inherited from class org.intermine.web.logic.profile.LoginHandler
doLogin, doStaticLogin, mergeProfiles, runBagUpgrade, setUpPermission, setUpProfile, setUpProfile
-
Methods inherited from class org.intermine.web.struts.InterMineAction
getWebProperties, recordError, recordError, recordError, recordMessage
-
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
-
-
-
Method Detail
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Method called for login in- Overrides:
execute
in classorg.apache.struts.action.Action
- Parameters:
mapping
- The ActionMapping used to select this instanceform
- The optional ActionForm bean for this request (if any)request
- The HTTP request we are processingresponse
- The HTTP response we are creating- Returns:
- an ActionForward object defining where control goes next
-
-