Aru*_*ana 1 access-token azure-active-directory
在我的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);
},
Run Code Online (Sandbox Code Playgroud)
而我正在低于错误
{"AADSTS70002:错误验证凭证AADSTS50011:回复地址' https://开头本地主机:44301 / '不匹配回复地址' https://开头本地主机:44301 '请求授权代码时提供\ r \nTrace ID: fd34bd6b-37d5-4b66-85d0-657b27103049\r \n相关ID:ea970ddb-cab8-4949-b749-1b4a8d7b5a6b\r \n时间戳:2016-08-25 06:44:59Z"}
| 归档时间: |
|
| 查看次数: |
3632 次 |
| 最近记录: |