Class 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 Detail

      • LtiLaunchController

        public LtiLaunchController()
    • 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