MS has documentation for EF Core + Azure SQL with Managed Identity. This SO post from two years ago also had an in-depth discussion regarding it along with some alternative implementations.
But I cannot find anything for Azure PostgreSQL, which also supports managed identity, for use with EF Core.
MS has a generic documentation for Azure PostgreSQL managed identity here: https://learn.microsoft.com/en-us/azure/postgresql/howto-connect-with-managed-identity
It seems to suggest that replacing the password with access token in a regular PostgreSQL connection string is how it works.
So what is the best way to implement this with EF Core?
Any advice or link to related documentations would be greatly appreciated.