Permalink
Browse files

Removed use of deprecated property with the new version of Microsoft.…

…Owin.Security.ActiveDirectory
  • Loading branch information...
robdmoore committed Oct 22, 2014
1 parent 4861ea5 commit d4432a14c07a2b2f8fc571efe1540827ccba7386
Showing with 5 additions and 1 deletion.
  1. +5 −1 AzureAdMvcExample/App_Start/Startup.cs
@@ -1,4 +1,5 @@
using System.Configuration;
+using System.IdentityModel.Tokens;
using Microsoft.Owin.Security.ActiveDirectory;
using Owin;
@@ -11,7 +12,10 @@ public void Configuration(IAppBuilder app)
app.UseWindowsAzureActiveDirectoryBearerAuthentication(
new WindowsAzureActiveDirectoryBearerAuthenticationOptions
{
- Audience = ConfigurationManager.AppSettings["ida:AudienceUri"],
+ TokenValidationParameters = new TokenValidationParameters
+ {
+ ValidAudience = ConfigurationManager.AppSettings["ida:AudienceUri"]
+ },
Tenant = ConfigurationManager.AppSettings["AzureADTenant"]
});
}

0 comments on commit d4432a1

Please sign in to comment.