Class LtiSession


  • public class LtiSession
    extends Object
    Class to hold LTI session data. It is created and populated when the LTI application is first launched and then stored in the session for future reference. Some commonly accessed information is stored in their own variables (like eID) but all data we get as part of the LTI launch request is stored in the LtiLaunchData object if you need it. Ideally this would be a session scoped bean that gets autowired into the controllers. Unfortunately this breaks when I try to wire it into both an LTI controller and the Oauth controller so I ended up making my own session management in LtiLaunchController
    • Constructor Detail

      • LtiSession

        public LtiSession()
    • Method Detail

      • setApplicationName

        public void setApplicationName​(String applicationName)
      • getApplicationName

        public String getApplicationName()
      • setInitialViewPath

        public void setInitialViewPath​(String initialViewPath)
      • getInitialViewPath

        public String getInitialViewPath()
      • setEid

        public void setEid​(String eid)
      • getEid

        public String getEid()
      • setOauthToken

        public void setOauthToken​(edu.ksu.canvas.oauth.OauthToken oauthToken)
      • getOauthToken

        public edu.ksu.canvas.oauth.OauthToken getOauthToken()
        Get the current user's Canvas API OAuth token for authentication
        Returns:
        User's OAuth token
      • setCanvasCourseId

        public void setCanvasCourseId​(String canvasCourseId)
      • getCanvasCourseId

        public String getCanvasCourseId()
      • setCanvasDomain

        public void setCanvasDomain​(String canvasDomain)
      • getCanvasDomain

        public String getCanvasDomain()
      • setLtiLaunchData

        public void setLtiLaunchData​(LtiLaunchData ltiLaunchData)
      • getOauthTokenRequestState

        public String getOauthTokenRequestState()
      • setOauthTokenRequestState

        public void setOauthTokenRequestState​(String oauthTokenRequestState)