File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
TodoListService-ManualJwt Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,5 @@ _UpgradeReport_Files/
107107Backup * /
108108UpgradeLog * .XML
109109/.vs
110+ /AppCreationScripts /createdApps.html
111+ /TokenCache.dat
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ internal class TokenValidationHandler : DelegatingHandler
6666 static string aadInstance = ConfigurationManager . AppSettings [ "ida:AADInstance" ] ;
6767 static string tenant = ConfigurationManager . AppSettings [ "ida:Tenant" ] ;
6868 static string audience = ConfigurationManager . AppSettings [ "ida:Audience" ] ;
69- static string audience = ConfigurationManager . AppSettings [ "ida:AppId " ] ;
69+ static string clientId = ConfigurationManager . AppSettings [ "ida:ClientId " ] ;
7070 string authority = String . Format ( CultureInfo . InvariantCulture , aadInstance , tenant ) ;
7171
7272 static string _issuer = string . Empty ;
@@ -126,7 +126,7 @@ protected async override Task<HttpResponseMessage> SendAsync(HttpRequestMessage
126126 TokenValidationParameters validationParameters = new TokenValidationParameters
127127 {
128128 // We accept both the App Id URI and the AppId of this service application
129- ValidAudiences = new [ ] { audience , appId } ,
129+ ValidAudiences = new [ ] { audience , clientId } ,
130130
131131 // Supports both the Azure AD V1 and V2 endpoint
132132 ValidIssuers = new [ ] { issuer , $ "{ issuer } /v2.0" } ,
You can’t perform that action at this time.
0 commit comments