Merge branch 'master' of ssh://bitbucket.org/yackob03/quay

This commit is contained in:
jakedt 2014-03-26 18:37:06 -04:00
commit cf14d5af05

View file

@ -292,8 +292,11 @@ def request_authorization_code():
if (not current_user.is_authenticated() or if (not current_user.is_authenticated() or
not provider.validate_has_scopes(client_id, current_user.db_user().username, scope)): not provider.validate_has_scopes(client_id, current_user.db_user().username, scope)):
if not provider.validate_redirect_uri(client_id, redirect_uri): if not provider.validate_redirect_uri(client_id, redirect_uri):
current_app = provider.get_application_for_client_id(client_id)
if not current_app:
abort(404) abort(404)
return
return provider._make_redirect_error_response(current_app.redirect_uri, 'redirect_uri_mismatch')
# Load the scope information. # Load the scope information.
scope_info = scopes.get_scope_information(scope) scope_info = scopes.get_scope_information(scope)