mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that internal authentication when combined with other authentication providers, the order of internal source should not matter while picking up the provider. Fixes #6832
This commit is contained in:
parent
36e5708464
commit
572b5a126a
@ -22,6 +22,7 @@ Bug fixes
|
|||||||
| `Issue #5427 <https://redmine.postgresql.org/issues/5427>`_ - Fixed pgAdmin freezing issue by providing the error message for the operation that can't perform due to lock on the particular table.
|
| `Issue #5427 <https://redmine.postgresql.org/issues/5427>`_ - Fixed pgAdmin freezing issue by providing the error message for the operation that can't perform due to lock on the particular table.
|
||||||
| `Issue #6780 <https://redmine.postgresql.org/issues/6780>`_ - Ensure that columns should be merged if the newly added column is present in the parent table.
|
| `Issue #6780 <https://redmine.postgresql.org/issues/6780>`_ - Ensure that columns should be merged if the newly added column is present in the parent table.
|
||||||
| `Issue #6809 <https://redmine.postgresql.org/issues/6809>`_ - Fixed an issue where pgAdmin is not opening properly.
|
| `Issue #6809 <https://redmine.postgresql.org/issues/6809>`_ - Fixed an issue where pgAdmin is not opening properly.
|
||||||
|
| `Issue #6832 <https://redmine.postgresql.org/issues/6832>`_ - Ensure that internal authentication when combined with other authentication providers, the order of internal source should not matter while picking up the provider.
|
||||||
| `Issue #6859 <https://redmine.postgresql.org/issues/6859>`_ - Fixed an issue where properties panel is not updated when any object is added from the browser tree.
|
| `Issue #6859 <https://redmine.postgresql.org/issues/6859>`_ - Fixed an issue where properties panel is not updated when any object is added from the browser tree.
|
||||||
| `Issue #6905 <https://redmine.postgresql.org/issues/6905>`_ - Fixed an issue where database nodes are not getting loaded behind a reverse proxy with SSL.
|
| `Issue #6905 <https://redmine.postgresql.org/issues/6905>`_ - Fixed an issue where database nodes are not getting loaded behind a reverse proxy with SSL.
|
||||||
| `Issue #6939 <https://redmine.postgresql.org/issues/6939>`_ - Fixed an issue where older server group name displayed in the confirmation pop-up when the user removes server group.
|
| `Issue #6939 <https://redmine.postgresql.org/issues/6939>`_ - Fixed an issue where older server group name displayed in the confirmation pop-up when the user removes server group.
|
||||||
|
@ -104,7 +104,13 @@ if config.SERVER_MODE:
|
|||||||
|
|
||||||
# Authentication sources
|
# Authentication sources
|
||||||
if len(config.AUTHENTICATION_SOURCES) > 0:
|
if len(config.AUTHENTICATION_SOURCES) > 0:
|
||||||
app.PGADMIN_EXTERNAL_AUTH_SOURCE = config.AUTHENTICATION_SOURCES[0]
|
# Creating a temporary auth source list removing INTERNAL
|
||||||
|
# This change is done to avoid selecting INTERNAL authentication when user
|
||||||
|
# mistakenly keeps that the first option.
|
||||||
|
auth_source = [x for x in config.AUTHENTICATION_SOURCES
|
||||||
|
if x != INTERNAL]
|
||||||
|
app.PGADMIN_EXTERNAL_AUTH_SOURCE = auth_source[0] \
|
||||||
|
if len(auth_source) > 0 else INTERNAL
|
||||||
else:
|
else:
|
||||||
app.PGADMIN_EXTERNAL_AUTH_SOURCE = INTERNAL
|
app.PGADMIN_EXTERNAL_AUTH_SOURCE = INTERNAL
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user