mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-20 15:22:58 -05:00
wtv
This commit is contained in:
@@ -231,6 +231,9 @@ class DjangoToolConfig(ToolConfAbstract):
|
||||
private_key_pem = self.get_jwk(iss, config.get('client_id'))
|
||||
if private_key_pem:
|
||||
registration.set_tool_private_key(private_key_pem)
|
||||
# Set key ID so it's included in JWT header
|
||||
key_obj = LTIToolKeys.get_or_create_keys()
|
||||
registration.set_kid(key_obj.private_key_jwk['kid'])
|
||||
|
||||
return registration
|
||||
|
||||
@@ -257,6 +260,9 @@ class DjangoToolConfig(ToolConfAbstract):
|
||||
private_key_pem = self.get_jwk(iss, config.get('client_id'))
|
||||
if private_key_pem:
|
||||
registration.set_tool_private_key(private_key_pem)
|
||||
# Set key ID so it's included in JWT header
|
||||
key_obj = LTIToolKeys.get_or_create_keys()
|
||||
registration.set_kid(key_obj.private_key_jwk['kid'])
|
||||
|
||||
return registration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user