-
|
I'd like to use When I configured a worker console app with Microsoft.Identity.Web: And configure the services with var builder = Host.CreateApplicationBuilder(args);
builder.Services
.AddMicrosoftIdentityWebApiAuthentication(builder.Configuration, "AzureAd")
.EnableTokenAcquisitionToCallDownstreamApi()
.AddInMemoryTokenCaches();
var host = builder.Build();
host.Run();I got the next error when calling What is weird is that I have this working in one project, and an exact copy of that project (and from a clean repro) fails. So the question is "Can we use |
Beta Was this translation helpful? Give feedback.
Answered by
jmprieur
Nov 7, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rido-min
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can. See https://github.com/AzureAD/microsoft-identity-web/blob/feature/doc-modernization/docs/scenarios/daemon/README.md
and the samples: https://github.com/Azure-Samples/active-directory-dotnetcore-daemon-v2