I have the following code in the C# MVC application, but I want to call more than one APIs from MVC. so I want to add multiple audience. for eg “API-1”, “API-2” and so on. how do i modify the following code?
services.AddAuth0WebAppAuthentication(options =>
{
options.Domain = "https://myokta.authority.com";
options.ClientId = AppSettings.AuthenticationClientId;
options.ClientSecret = AppSettings.AuthenticationClientSecret;
options.Scope = AppSettings.AuthenticationScopes;
}).WithAccessToken(options =>
{
options.Audience = "API-1";
});