Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

'X-MS-TOKEN-AAD-ID-TOKEN': property doesn't exist #98

Open
BobGerman opened this issue Feb 4, 2019 · 0 comments
Open

'X-MS-TOKEN-AAD-ID-TOKEN': property doesn't exist #98

BobGerman opened this issue Feb 4, 2019 · 0 comments

Comments

@BobGerman
Copy link

BobGerman commented Feb 4, 2019

I'm trying to get Graph Token extension working in an Azure function using the instructions in this repo and I keep getting this error:

Error while accessing 'X-MS-TOKEN-AAD-ID-TOKEN': property doesn't exist.

I've checked the documentation 5 times and done a bunch of web searches; need this urgently for a demo. Any chance you can help? Am I missing something easy?
Note I added the extension via the command lines in the article on Github, and deployed via VS Code.

Thanks!

Here is my function.json:

{
  "disabled": false,
  "bindings": [
    {
      "authLevel": "anonymous",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "methods": [
        "get",
        "post"
      ]
    },
    {
      "type": "token",
      "direction": "in",
      "name": "graphToken",
      "resource": "https://graph.microsoft.com",
      "identity": "userFromRequest"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    }
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant