Код: Выделить всё
builder.Services.AddAuthentication()
.AddWsFederation(options =>
{
// MetadataAddress represents the Active Directory instance used to authenticate users.
options.MetadataAddress = builder.Configuration["ida:ADFSMetadata"];
// Wtrealm is the app's identifier in the Active Directory instance.
// For ADFS, use the relying party's identifier, its WS-Federation Passive protocol URL:
options.Wtrealm = builder.Configuration["ida:Wtrealm"];
options.RequireHttpsMetadata = false;
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateAudience = true
};
});
Заранее спасибо, с уважением
Подробнее здесь: https://stackoverflow.com/questions/787 ... pplication
Мобильная версия