Package edu.ksu.lti.launch.controller
Class LtiLaunchController
- java.lang.Object
-
- edu.ksu.lti.launch.controller.LtiLaunchController
-
public abstract class LtiLaunchController extends Object
Class to handle the initial launch of an LTI application and creating a session with authentication information from Canvas in it. After the LTI data's signature is verified it will forward the request to an "initial view" that all implementing classes must supply via the getInitialViewPath() method. This initial view method should verify that there is a valid ltiSession with an eID in it and can then serve up its content.
-
-
Constructor Summary
Constructors Constructor Description LtiLaunchController()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringgetApplicationName()The identifier of this LTI application.protected abstract StringgetInitialViewPath()return the initial path that the user should be sent to after authenticating the LTI launch requestStringltiLaunch(LtiLaunchData ltiData, javax.servlet.http.HttpSession session)
-
-
-
Method Detail
-
ltiLaunch
@RequestMapping(value="/launch", method=POST) public String ltiLaunch(@ModelAttribute LtiLaunchData ltiData, javax.servlet.http.HttpSession session) throws Exception- Throws:
Exception
-
getInitialViewPath
protected abstract String getInitialViewPath()
return the initial path that the user should be sent to after authenticating the LTI launch request- Returns:
- Name of the initial view to send the user to
-
getApplicationName
protected abstract String getApplicationName()
The identifier of this LTI application. Used to look up config values in the database and such- Returns:
- The name of the application
-
-