mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-01-20 07:12:58 -05:00
wtv
This commit is contained in:
@@ -228,12 +228,9 @@ class DjangoToolConfig(ToolConfAbstract):
|
|||||||
registration.set_key_set_url(config.get('key_set_url'))
|
registration.set_key_set_url(config.get('key_set_url'))
|
||||||
|
|
||||||
# Set tool's private key for signing (e.g., Deep Linking responses)
|
# Set tool's private key for signing (e.g., Deep Linking responses)
|
||||||
private_key_pem = self.get_jwk(iss, config.get('client_id'))
|
key_obj = LTIToolKeys.get_or_create_keys()
|
||||||
if private_key_pem:
|
# Pass the full JWK dict (includes kid) - PyLTI1p3 will handle conversion
|
||||||
registration.set_tool_private_key(private_key_pem)
|
registration.set_tool_private_key(key_obj.private_key_jwk)
|
||||||
# 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
|
return registration
|
||||||
|
|
||||||
@@ -257,12 +254,9 @@ class DjangoToolConfig(ToolConfAbstract):
|
|||||||
registration.set_key_set_url(config.get('key_set_url'))
|
registration.set_key_set_url(config.get('key_set_url'))
|
||||||
|
|
||||||
# Set tool's private key for signing (e.g., Deep Linking responses)
|
# Set tool's private key for signing (e.g., Deep Linking responses)
|
||||||
private_key_pem = self.get_jwk(iss, config.get('client_id'))
|
key_obj = LTIToolKeys.get_or_create_keys()
|
||||||
if private_key_pem:
|
# Pass the full JWK dict (includes kid) - PyLTI1p3 will handle conversion
|
||||||
registration.set_tool_private_key(private_key_pem)
|
registration.set_tool_private_key(key_obj.private_key_jwk)
|
||||||
# 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
|
return registration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user