Commit 663ff81b by Alexander Kryklia

Updates documentation.

parent 787545c8
...@@ -65,9 +65,10 @@ class LTIModule(LTIFields, XModule): ...@@ -65,9 +65,10 @@ class LTIModule(LTIFields, XModule):
*+ all custom parameters* *+ all custom parameters*
These parameters should be encoded and signed by *oauth1* together with These parameters should be encoded and signed by *oauth1* together with
`launch_url` and *POST* request type. Signing proceeds with client key/secret `launch_url` and *POST* request type.
pair obtained from course settings. That pair should be obtained from LTI provider
and set into course settings by course author. 3. Signing proceeds with client key/secret pair obtained from course settings.
That pair should be obtained from LTI provider and set into course settings by course author.
After that signature and other oauth data are generated. After that signature and other oauth data are generated.
Oauth data which is generated after signing is usual:: Oauth data which is generated after signing is usual::
...@@ -80,7 +81,7 @@ class LTIModule(LTIFields, XModule): ...@@ -80,7 +81,7 @@ class LTIModule(LTIFields, XModule):
oauth_version oauth_version
All that data is passed to form and sent to LTI provider server by browser via 4. All that data is passed to form and sent to LTI provider server by browser via
autosubmit via javascript. autosubmit via javascript.
Form example:: Form example::
...@@ -115,7 +116,7 @@ class LTIModule(LTIFields, XModule): ...@@ -115,7 +116,7 @@ class LTIModule(LTIFields, XModule):
<input type="submit" value="Press to Launch" /> <input type="submit" value="Press to Launch" />
</form> </form>
LTI provider has same secret key and it signs data string via *oauth1* and compares signatures. 5. LTI provider has same secret key and it signs data string via *oauth1* and compares signatures.
If signatures are correct, LTI provider redirects iframe source to LTI tool web page, If signatures are correct, LTI provider redirects iframe source to LTI tool web page,
and LTI tool is rendered to iframe inside course. and LTI tool is rendered to iframe inside course.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment