Re: Proposal: Support custom authentication methods using hooks
От | Peter Eisentraut |
---|---|
Тема | Re: Proposal: Support custom authentication methods using hooks |
Дата | |
Msg-id | df770761-61a4-17ac-6368-e1fa88702f10@enterprisedb.com обсуждение исходный текст |
Ответ на | Re: Proposal: Support custom authentication methods using hooks (samay sharma <smilingsamay@gmail.com>) |
Список | pgsql-hackers |
On 15.03.22 20:27, samay sharma wrote: > This patch-set adds the following: > > * Allow multiple custom auth providers to be registered (Addressing > feedback from Aleksander and Andrew) > * Modify the test extension to use SCRAM to exchange secrets (Based on > Andres's suggestion) > * Add support for custom auth options to configure provider's behavior > (by exposing a new hook) (Required by OAUTHBEARER) > * Allow custom auth methods to use usermaps. (Required by OAUTHBEARER) Some feedback on this specific patch set: Custom authentication methods should be able to register their own name other than "custom". You ought to refactor things so that existing methods such as ldap and pam go through your extension interface. So the whole thing should be more like a lookup table or list with some built-in entries that modules can dynamically add on to. Then you also don't need a test module, since the existing authentication methods would already test the interfaces.
В списке pgsql-hackers по дате отправления: