move jwk set URI to /keys

This commit is contained in:
Jimmy Zelinskie 2016-01-08 16:22:31 -05:00
parent 559a55b1de
commit 8a924aae4a

View file

@ -698,8 +698,8 @@ def _load_certificate_bytes(certificate_file_path):
with open(certificate_file_path) as cert_file:
return load_pem_x509_certificate(cert_file.read(), default_backend()).public_key()
@web.route('/jwk_set', methods=['GET'])
@route_show_if(features.BITTORRENT)
@web.route('/keys', methods=['GET'])
def jwk_set_uri():
certificate = _load_certificate_bytes(app.config['JWT_AUTH_CERTIFICATE_PATH'])
return jsonify({