A feature has been committed in Postgres 16 for libpq to bring more filtering capabilities over the authentication methods authorized on a new connection. Here is the commit: commit: 3a465cc6783f586096d9f885c3fc544d82eb8f19 author: Michael Paquier <michael@paquier.xyz> date: Tue, 14 Mar 2023 14:00:05 +0900 libpq: Add support for require_auth to control authorized auth methods The new connection parameter require_auth allows a libpq client to define a list of comma-separated acceptable authent...