I have an ASP.NET Core Web API which can be accessed by many client applications. I want to authenticate all client applications. All client application have different client ID under same tenant. How to do this?
This is my appsettings.json file
And here is my Startup.cs file
public void ConfigureServices(IServiceCollection services)
{
Essilor.Common.AwsMfaHelper.ProfileHelper.UseProfile("ride-dev", true);
InitializeEnvironment();
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApi(Configuration);
services.AddAuthorization();
services.AddAuthZClient();
services.AddDefaultAWSOptions(Configuration.GetAWSOptions());
services.AddAWSService<Amazon.S3.IAmazonS3>();
RegisterServices(services);
services.AddMvcCore();
services.AddRazorPages();
services.AddControllersWithViews(options =>
{
options.Filters.Add(typeof(AuditTrailAttribute));
});
}
