AADSTS50013:断言包含无效签名。原因 - 找不到钥匙。,

时间:2018-02-09 02:01:41

标签: azure azure-active-directory azure-ad-b2c

我正在尝试使用Azure AD B2C设置Azure功能。这些函数需要与Azure AD B2C应用程序绑定的授权。

Azure AD B2C应用程序有一个键部分:

enter image description here

我使用了生成的密钥(M99 *****)并将其置于azure功能验证/授权设置中:

enter image description here

当我调用函数传递正确的bearers键时:

[FunctionName("TestMe")]
public static IActionResult Run([
    HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)]HttpRequest req, 
    [Token(Resource="https://graph.microsoft.com", Identity=TokenIdentityMode.UserFromRequest)]string graphToken,
    TraceWriter log)
{

我不确定除了我使用错误的密钥之外,在这个问题上发生了什么,这引发了问题 - 在Azure AD B2C中,什么是正确的密钥?

0 个答案:

没有答案