Package edu.ksu.lti.launch.oauth
Class LtiLaunch
- java.lang.Object
-
- edu.ksu.lti.launch.oauth.LtiLaunch
-
@Component @Scope("session") public class LtiLaunch extends Object
-
-
Constructor Summary
Constructors Constructor Description LtiLaunch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.ksu.canvas.oauth.OauthTokenensureApiTokenPresent()voidvalidateOAuthToken()Perform a trivial Canvas operation to verify if the OAuth Token is valid.
-
-
-
Method Detail
-
ensureApiTokenPresent
public edu.ksu.canvas.oauth.OauthToken ensureApiTokenPresent() throws OauthTokenRequiredException, NoLtiSessionException
-
validateOAuthToken
public void validateOAuthToken() throws NoLtiSessionException, IOExceptionPerform a trivial Canvas operation to verify if the OAuth Token is valid. This will typically be used when we want an integration to fail fast. Some integrations might not notice that the OAuth token is invalid until halfway into whatever it is that they do. This was initially the case for the Scantron integration.- Throws:
NoLtiSessionException- When there isn't a valid ltiExcpetionIOException- when exception communicating with canvas
-
-