New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get graphToken for local development #54
Comments
Unfortunately our local development is still awkward due to a large dependence on App Service Authentication/Authorization, which can't be run locally yet. That means that you need to have an hosted Azure Web App (or Azure Functions Application) with EasyAuth already set up, and with various app settings set in your
To test any of these 3 authentication modes locally, sign in to your hosted application at the
The client credentials case shouldn't require setting any additional values for local development. All of this should be more clearly documented in the README, though I want to take the time to test that this all works and to make the language more clear. Let me know if you encounter any issues with my instructions. |
I made it work for my environment to get the graph token. I just give you my local.settings.json. {
"Values": {
"WEBSITE_AUTH_CLIENT_ID": "**clientID**",
"WEBSITE_AUTH_CLIENT_SECRET": "**clientSecret**",
"WEBSITE_AUTH_OPENID_ISSUER": "https://sts.windows.net/**issuerId**"
}
} just be aware that the WEBSITE_AUTH_OPENID_ISSUER needs to be a url and not only the ID of the tenant in azure. |
@ConnorMcMahon works like a charm! Used the
Another thing, can you briefly explain the |
@fiyazbinhasan, Speaking of Graph webhooks, unfortunately we don't have a good local development story for that yet. Creating a Graph webhook subscription requires the Graph API to hit an exposed endpoint of the Function runtime. Using a tool like ngrok may expose that endpoint properly to the Graph API, but that hasn't been tested yet, and there is likely some development work that would be required to make it work well locally. |
I followed the steps listed in
local development
section. However, I'm not sure how to get and store a graphToken for local development i.e. running onlocalhost
throws 500. What would be the desired configuration forlocal.settings.json
file for local development? TIAThe text was updated successfully, but these errors were encountered: