2
凭证在我的Azure的AD应用程序我试图在下面的部分AADSTS70002:错误验证我的Azure的AD应用
AuthorizationCodeReceived = (context) =>
{
var code = context.Code;
ClientCredential credential = new ClientCredential(ClientId, appKey);
string signedInUserID = context.AuthenticationTicket.Identity.FindFirst(ClaimTypes.NameIdentifier).Value;
AuthenticationContext authContext = new AuthenticationContext(Authority, new ADALTokenCache(signedInUserID));
AuthenticationResult result = authContext.AcquireTokenByAuthorizationCode(
code, new Uri(HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Path)), credential, graphResourceID);
return Task.FromResult(0);
},
检索访问令牌和我收到以下错误
{“AADSTS70002 :错误验证凭证AADSTS50011:答复 地址“https://localhost:44301/”不匹配 “https://localhost:44301”请求授权 时提供的回复地址代码\ r \ nTrace ID:fd34bd6b-37d5-4b66-85d0-657b27103049 \ r \ nCorrelation ID:ea970ddb-cab8-4949-b749-1b4a8d7b5a6b \ r \ nTimestamp:2016年8月25日 06:44:59Z“}
在天青门户我有双重检查该应答URL应该匹配 这里应该有什么问题?