Commit 4b80657 1 parent f3ef83d commit 4b80657 Copy full SHA for 4b80657
File tree 2 files changed +4
-2
lines changed
TodoListService-ManualJwt
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,3 +107,5 @@ _UpgradeReport_Files/
107
107
Backup * /
108
108
UpgradeLog * .XML
109
109
/.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
66
66
static string aadInstance = ConfigurationManager . AppSettings [ "ida:AADInstance" ] ;
67
67
static string tenant = ConfigurationManager . AppSettings [ "ida:Tenant" ] ;
68
68
static string audience = ConfigurationManager . AppSettings [ "ida:Audience" ] ;
69
- static string audience = ConfigurationManager . AppSettings [ "ida:AppId " ] ;
69
+ static string clientId = ConfigurationManager . AppSettings [ "ida:ClientId " ] ;
70
70
string authority = String . Format ( CultureInfo . InvariantCulture , aadInstance , tenant ) ;
71
71
72
72
static string _issuer = string . Empty ;
@@ -126,7 +126,7 @@ protected async override Task<HttpResponseMessage> SendAsync(HttpRequestMessage
126
126
TokenValidationParameters validationParameters = new TokenValidationParameters
127
127
{
128
128
// We accept both the App Id URI and the AppId of this service application
129
- ValidAudiences = new [ ] { audience , appId } ,
129
+ ValidAudiences = new [ ] { audience , clientId } ,
130
130
131
131
// Supports both the Azure AD V1 and V2 endpoint
132
132
ValidIssuers = new [ ] { issuer , $ "{ issuer } /v2.0" } ,
You can’t perform that action at this time.
0 commit comments