leungkimming / DotNet6EAA

A SOLID+DDD based .net framework migrated to .NET 6 based on EnLabSoftware's HRManagement template
1 stars 2 forks source link

preferred_username #44

Open leungkimming opened 9 months ago

leungkimming commented 9 months ago

''' builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddMicrosoftIdentityWebApi(options => { builder.Configuration.Bind("AzureAdAPI", options); options.TokenValidationParameters.NameClaimType = "preferred_username"; }, options => { builder.Configuration.GetSection("AzureAdAPI"); } ); '''