Add cancel button to the oauth authorization page, add the org icon to said page, and fix some other minor bugs
This commit is contained in:
parent
acac2a7fa7
commit
e92cf37583
5 changed files with 49 additions and 2 deletions
|
@ -122,6 +122,21 @@ class DatabaseAuthorizationProvider(AuthorizationProvider):
|
|||
.get())
|
||||
found.delete_instance()
|
||||
|
||||
|
||||
def get_auth_denied_response(self, response_type, client_id, redirect_uri, **params):
|
||||
# Ensure proper response_type
|
||||
if response_type != 'token':
|
||||
err = 'unsupported_response_type'
|
||||
return self._make_redirect_error_response(redirect_uri, err)
|
||||
|
||||
# Check redirect URI
|
||||
is_valid_redirect_uri = self.validate_redirect_uri(client_id, redirect_uri)
|
||||
if not is_valid_redirect_uri:
|
||||
return self._invalid_redirect_uri_response()
|
||||
|
||||
return self._make_redirect_error_response(redirect_uri, 'authorization_denied')
|
||||
|
||||
|
||||
def get_token_response(self, response_type, client_id, redirect_uri, **params):
|
||||
# Ensure proper response_type
|
||||
if response_type != 'token':
|
||||
|
|
Reference in a new issue