We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As per https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication/best-practices?tabs=aspdotnet#use-deterministic-credentials-in-production-environments, DefaultAzureCredential (DAC) should not be used in production scenarios. This is based on a PIR. Please read the public doc for to see the scenario where DAC breaks production.
DefaultAzureCredential
DAC
Id.Web uses DAC in production code
microsoft-identity-web/src/Microsoft.Identity.Web.Certificate/KeyVaultCertificateLoader.cs
Line 82 in 9bd5211
Consider using https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-9.0 to determine if the app runs in DEV or in STAGING or PROD. Not sure about ASP.NET Classic. If not possible, we should let the app developer choose.
If production env, we could use only the SP auth (env credential, msi credential, workload cred, FICs). In "dev" scenarios we can continue to use DAC.
The text was updated successfully, but these errors were encountered:
Would need an opinion on how to actually fix this @jmprieur @jennyf19 . If we can use the "environment" concept, I would argue that this is not a breaking change. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-9.0
Otherwise, it could be a breaking change.
Sorry, something went wrong.
Needs to be taking with the test buble support
No branches or pull requests
Description
As per https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication/best-practices?tabs=aspdotnet#use-deterministic-credentials-in-production-environments,
DefaultAzureCredential
(DAC
) should not be used in production scenarios. This is based on a PIR. Please read the public doc for to see the scenario whereDAC
breaks production.Id.Web uses
DAC
in production codemicrosoft-identity-web/src/Microsoft.Identity.Web.Certificate/KeyVaultCertificateLoader.cs
Line 82 in 9bd5211
Expected behavior
Consider using https://learn.microsoft.com/en-us/aspnet/core/fundamentals/environments?view=aspnetcore-9.0 to determine if the app runs in DEV or in STAGING or PROD. Not sure about ASP.NET Classic. If not possible, we should let the app developer choose.
If production env, we could use only the SP auth (env credential, msi credential, workload cred, FICs). In "dev" scenarios we can continue to use DAC.
The text was updated successfully, but these errors were encountered: