Zdar! Mam problem. Jde o cest a slavu .NET CORE :)
V builderu nastavuji authentikaci:
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(builder.Configuration.GetSection("AzureAd"));
s nastavenim podle obrazku. Devops ma pozadavek rozlisovat B2C environments (Microsoft a Google) a overovat token s odlisnym SignUpSignInPolicyId. Pridat dalsi authentikaci se mi nepodarilo, stale je problem, ze JwtBearerDefaults.AuthenticationScheme (beaver) already exists.
Potreboval bych za behu tedy v middleware menit jen zvyraznenou polozku z obrazku SignUpSignInPolicyId.Tenhle dva roky stary stackoverflow tvrdi, ze to nejde.
"It seems indeed impossible at the moment to have multiple B2C environments connected to one Azure App Service."
c# - .NET Core route based authentication with multiple B2C environments - Stack Overflowhttps://stackoverflow.com/questions/64859576/net-core-route-based-authentication-with-multiple-b2c-environmentsProsadil jsem na tenhle projekt .NET CORE a za vraty mam JAVA hyeny, co cekaji az prijdu a reknu, ze .NET neco neumi :) Nejaky napad? Nebo by si to spravne melo cele osetrit devops a ja bych smel pouzivat jen jednu SignUpSignInPolicyId.