Skip to content

Commit

Permalink
allow multiple audiences
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauljgraham committed Aug 14, 2020
1 parent 985d423 commit 122643f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SFA.DAS.EmployerAccounts.Api/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseWindowsAzureActiveDirectoryBearerAuthentication(new WindowsAzureActiveDirectoryBearerAuthenticationOptions
_ = app.UseWindowsAzureActiveDirectoryBearerAuthentication(new WindowsAzureActiveDirectoryBearerAuthenticationOptions
{
Tenant = ConfigurationManager.AppSettings["idaTenant"],
TokenValidationParameters = new System.IdentityModel.Tokens.TokenValidationParameters
{
RoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role",
ValidAudience = ConfigurationManager.AppSettings["idaAudience"]
ValidAudiences = ConfigurationManager.AppSettings["idaAudience"].ToString().Split(',')
}
});
}
Expand Down

0 comments on commit 122643f

Please sign in to comment.