Skip to content
Snippets Groups Projects
Commit 3c9402f6 authored by Giovanni Cimolin da Silva's avatar Giovanni Cimolin da Silva Committed by Ned Batchelder
Browse files

feat: Increate the LTI 1.3 token validity to 1h

parent d54b370a
No related branches found
No related tags found
No related merge requests found
...@@ -329,6 +329,7 @@ Changelog ...@@ -329,6 +329,7 @@ Changelog
* LTI Advantage - AGS Service: Added support for programmatic grade management by LTI tools. * LTI Advantage - AGS Service: Added support for programmatic grade management by LTI tools.
* Improved grade publishing to LMS when using LTI-AGS. * Improved grade publishing to LMS when using LTI-AGS.
* Increase LTI 1.3 token validity to 1h.
2.7.0 - 2021-02-16 2.7.0 - 2021-02-16
------------------ ------------------
......
...@@ -330,7 +330,7 @@ class LtiConsumer1p3: ...@@ -330,7 +330,7 @@ class LtiConsumer1p3:
"state": preflight_response.get("state"), "state": preflight_response.get("state"),
"id_token": self.key_handler.encode_and_sign( "id_token": self.key_handler.encode_and_sign(
message=lti_launch_message, message=lti_launch_message,
expiration=300 expiration=3600
) )
} }
...@@ -567,7 +567,7 @@ class LtiAdvantageConsumer(LtiConsumer1p3): ...@@ -567,7 +567,7 @@ class LtiAdvantageConsumer(LtiConsumer1p3):
"state": preflight_response.get("state"), "state": preflight_response.get("state"),
"id_token": self.key_handler.encode_and_sign( "id_token": self.key_handler.encode_and_sign(
message=lti_launch_message, message=lti_launch_message,
expiration=300 expiration=3600
) )
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment