pgadmin-org / pgadmin4

pgAdmin is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.
https://www.pgadmin.org
Other
2.54k stars 659 forks source link

Wheres is SUPPORTED_MFA_LIST params ? #8142

Open kosmonavtus opened 2 days ago

kosmonavtus commented 2 days ago

In the documentation, you say https://www.pgadmin.org/docs/pgadmin4/development/mfa.html

_SUPPORTED_MFALIST = Set the authentication methods to be supported

ok!

Screenshot 2024-11-17 at 21 36 41

but nowhere does it say what the parameter is called. how can I specify what to write to make only the autentufication app available ?

What do you have to choose from? What are they called?

i am trying to use: MFA_SUPPORTED_METHODS: '["authenticator"] but it doesn't work. [pgAdmin 4 8.13]

Email OTP is still available ...

pravesh-sharma commented 1 day ago

Hi @kosmonavtus,

You can pass MFA_SUPPORTED_METHODS: ["authenticator"] in the config_local.py file as mentioned in the documentation. If you are using Docker, you can pass PGADMIN_CONFIG_MFA_SUPPORTED_METHODS: '["authenticator"]' in as env variable in the docker-compose file.

kosmonavtus commented 1 day ago

Hellow @pravesh-sharma thnx but I did this, the first time I log into pgadmin with MFA_FORCE_REGISTRATION True .

I still have a choice between email and authenticator apps.

is that correct, is that how it should be?

pravesh-sharma commented 1 day ago

@kosmonavtus set MFA_SUPPORTED_METHODS: ["authenticator"] it will list only the authenticator method. If you still face the issue can you please share your configuration details? If you are using docker please share your docker-compose file.