def read_private_key_file(path): with open(path) as f: return f.read() ISSUER_URL = 'https://arkhack.org' JWT_CONFIG = { 'key': read_private_key_file('private.pem'), 'alg': 'RS512', 'iss': ISSUER_URL, 'exp': 3600 } SCOPES_SUPPORTED = [ "profile:read", "profile:write", "password:write", "users:read", "openid", ] RESPONSE_TYPES_SUPPORTED = [ "code", "code id_token", "id_token", "token id_token", ]