wtv
This commit is contained in:
parent
a2d898c54e
commit
59be9f16c0
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user