key server: derive audience from host and scheme

This commit is contained in:
Jimmy Zelinskie 2016-03-31 16:41:53 -04:00 committed by Jimmy Zelinskie
parent c79bb14049
commit c0ab45d335
2 changed files with 1 additions and 2 deletions

View file

@ -16,7 +16,7 @@ from util.security import strictjwt
key_server = Blueprint('key_server', __name__)
JWT_HEADER_NAME = 'Authorization'
JWT_AUDIENCE = app.config['KEY_SERVER_AUDIENCE_NAME']
JWT_AUDIENCE = app.config['PREFERRED_URL_SCHEME'] + '://' + app.config['SERVER_HOSTNAME']
def _validate_jwk(jwk, kid):