Rename return variable for better readability
This commit is contained in:
parent
b7ce9ab901
commit
4e6e7edf27
|
@ -337,9 +337,9 @@ class Ping(Resource):
|
|||
)
|
||||
|
||||
jwks_url = current_app.config.get('PING_JWKS_URL')
|
||||
result = validate_id_token(id_token, args['clientId'], jwks_url)
|
||||
if result:
|
||||
return result
|
||||
error_code = validate_id_token(id_token, args['clientId'], jwks_url)
|
||||
if error_code:
|
||||
return error_code
|
||||
user, profile = retrieve_user(user_api_url, access_token)
|
||||
roles = create_user_roles(profile)
|
||||
update_user(user, profile, roles)
|
||||
|
@ -387,9 +387,9 @@ class OAuth2(Resource):
|
|||
)
|
||||
|
||||
jwks_url = current_app.config.get('PING_JWKS_URL')
|
||||
result = validate_id_token(id_token, args['clientId'], jwks_url)
|
||||
if result:
|
||||
return result
|
||||
error_code = validate_id_token(id_token, args['clientId'], jwks_url)
|
||||
if error_code:
|
||||
return error_code
|
||||
|
||||
user, profile = retrieve_user(user_api_url, access_token)
|
||||
roles = create_user_roles(profile)
|
||||
|
|
Loading…
Reference in New Issue