Closed joergjo closed 9 months ago
Npgsql 7.0 has added the capability to register a callback that fetches credentials such OAuth2 tokens: https://www.npgsql.org/doc/security.html?tabs=tabid-1#auth-token-rotation-and-dynamic-password. This makes it possible to use Entra ID based authentication instead of PostgreSQL's native logins and passwords.
This change will only apply to the main/.NET 8 branch, as .NET 7 will be out of support by May 2024
UsePeriodicPasswordProvider
contosoads-web
Npgsql 7.0 has added the capability to register a callback that fetches credentials such OAuth2 tokens: https://www.npgsql.org/doc/security.html?tabs=tabid-1#auth-token-rotation-and-dynamic-password. This makes it possible to use Entra ID based authentication instead of PostgreSQL's native logins and passwords.
This change will only apply to the main/.NET 8 branch, as .NET 7 will be out of support by May 2024
UsePeriodicPasswordProvider
using Azure Identitycontosoads-web
managed identity to access the PostgreSQL server when running on Azure.