在登录到我的iOS应用程序中的office-365帐户后,它会生成一个oauth令牌。
如何在microsoft的后端验证此令牌?
..With Google,当客户端获得oauth令牌时,他们有一个SDK将该令牌传递给您自己的后端,您可以在那里进行验证。有类似的东西吗?
编辑
看来我只需要使用这个令牌并验证用户:服务
发布于 2018-09-11 08:42:26
您可以尝试下面的代码来验证具有Exchange标识令牌的用户:
{
"aud" : "https://mailhost.contoso.com/IdentityTest.html",
"iss" : "00000002-0000-0ff1-ce00-000000000000@mailhost.contoso.com",
"nbf" : "1505749527",
"exp" : "1505778327",
"appctxsender":"00000002-0000-0ff1-ce00-000000000000@mailhost.context.com",
"isbrowserhostedapp":"true",
"appctx" : {
"msexchuid" : "53e925fa-76ba-45e1-be0f-4ef08b59d389",
"version" : "ExIdTok.V1",
"amurl" : "https://mailhost.contoso.com:443/autodiscover/metadata/json/1"
}
}欲了解更多信息,请查阅以下链接:
https://stackoverflow.com/questions/52264560
复制相似问题