Skip to content

Commit

Permalink
Updated for Blackboard Learn + included timezone in timestamps (in ca…
Browse files Browse the repository at this point in the history
…se of using AGS service)
  • Loading branch information
dmitry-viskov committed Apr 10, 2020
1 parent 50cd2a1 commit 827305e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ First of all choose and configure test LTI 1.3 Platform. It may be:

* `IMS Global test site`_
* `Canvas LMS`_ (Detailed `instruction`_ how to setup Canvas as LTI 1.3 Platform is `here`_)
* `Blackboard Learn`_ (`Documentation`_)

.. _IMS Global test site: https://lti-ri.imsglobal.org
.. _Canvas LMS: https://github.com/instructure/canvas-lms
.. _instruction: https://github.com/dmitry-viskov/pylti1.3/wiki/Configure-Canvas-as-LTI-1.3-Platform
.. _here: https://github.com/dmitry-viskov/pylti1.3/wiki/Configure-Canvas-as-LTI-1.3-Platform
.. _Blackboard Learn: https://github.com/blackboard
.. _Documentation: https://docs.blackboard.com/standards/PyLTI1p3WithBlackboardLearn.html

The most simple way to check example is to use ``docker`` + ``docker-compose``.
Change the necessary configs in the ``examples/configs/game.json`` (`here is instruction`_ how to generate your own public + private keys):
Change the necessary configs in the ``configs/game.json`` (`here is instruction`_ how to generate your own public + private keys):

.. _here is instruction: https://github.com/dmitry-viskov/pylti1.3/wiki/How-to-generate-JWT-RS256-key-and-JWKS

Expand Down
9 changes: 9 additions & 0 deletions configs/game.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,14 @@
"key_set": null,
"private_key_file": "cert_suite_private.key",
"deployment_ids": ["testdeploy"]
},
"https://blackboard.com": {
"client_id": "your client id",
"auth_login_url": "https://developer.blackboard.com/api/v1/gateway/oidcauth",
"auth_token_url": "https://developer.blackboard.com/api/v1/gateway/oauth2/jwttoken",
"key_set_url": "https://developer.blackboard.com/api/v1/management/applications/<your client id>/jwks.json",
"key_set": null,
"private_key_file": "private.key",
"deployment_ids": ["your deployment id"]
}
}
2 changes: 1 addition & 1 deletion game/game/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def score(request, launch_id, earned_score, time_spent):
return HttpResponseForbidden("Don't have grades!")

sub = message_launch.get_launch_data().get('sub')
timestamp = datetime.datetime.utcnow().isoformat()
timestamp = datetime.datetime.utcnow().isoformat() + 'Z'
earned_score = int(earned_score)
time_spent = int(time_spent)

Expand Down

0 comments on commit 827305e

Please sign in to comment.