Open petervtzand opened 1 year ago
I modified the code to: Please try if it works for you.
@app.route('/jwks/', methods=['GET'])
def get_jwks():
tool_conf = ToolConfJsonFile(get_lti_config_path())
# return jsonify({'keys': tool_conf.get_jwks()})
format_json_str = json.dumps(tool_conf.get_jwks(), separators=(',',':'))
return format_json_str
In https://github.com/dmitry-viskov/pylti1.3-flask-example/blob/master/game/app.py#L128 you do
but
tool_conf.get_jwks()
already returns something like{'keys': <the keys>}
(see https://github.com/dmitry-viskov/pylti1.3/blob/master/pylti1p3/tool_config/abstract.py#L117) so this route results into something likeSo what you should do is just
For me this resulted in 500 errors while testing deep_linking and names & roles services: