Merge branch 'master' of ssh://bitbucket.org/yackob03/quay
This commit is contained in:
commit
cf14d5af05
1 changed files with 5 additions and 2 deletions
|
@ -292,8 +292,11 @@ def request_authorization_code():
|
|||
if (not current_user.is_authenticated() or
|
||||
not provider.validate_has_scopes(client_id, current_user.db_user().username, scope)):
|
||||
if not provider.validate_redirect_uri(client_id, redirect_uri):
|
||||
abort(404)
|
||||
return
|
||||
current_app = provider.get_application_for_client_id(client_id)
|
||||
if not current_app:
|
||||
abort(404)
|
||||
|
||||
return provider._make_redirect_error_response(current_app.redirect_uri, 'redirect_uri_mismatch')
|
||||
|
||||
# Load the scope information.
|
||||
scope_info = scopes.get_scope_information(scope)
|
||||
|
|
Reference in a new issue