mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the error is shown on logout when the authentication source is oauth2. Fixes #7059
This commit is contained in:
committed by
Akshay Joshi
parent
dfb66b427c
commit
7b6469bd35
@@ -43,6 +43,11 @@ def get_logout_url() -> str:
|
||||
KERBEROS:
|
||||
return _URL_WITH_NEXT_PARAM.format(url_for(
|
||||
'kerberos.logout'), url_for(BROWSER_INDEX))
|
||||
elif config.SERVER_MODE and\
|
||||
session['auth_source_manager']['current_source'] == \
|
||||
OAUTH2:
|
||||
return _URL_WITH_NEXT_PARAM.format(url_for(
|
||||
'oauth2.logout'), url_for(BROWSER_INDEX))
|
||||
|
||||
return _URL_WITH_NEXT_PARAM.format(
|
||||
url_for('security.logout'), url_for(BROWSER_INDEX))
|
||||
|
||||
Reference in New Issue
Block a user