Skip to content
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

System.Private.CoreLib: Exception while executing function: Functions.[funcNameHere]. Microsoft.IdentityModel.Clients.ActiveDirectory: Value cannot be null. Parameter name: authority. #101

Open
alexkolson opened this issue Feb 7, 2019 · 4 comments

Comments

@alexkolson
Copy link

I've followed the instructions for setting the graph token binding while developing locally and am passing in the id_token as the value of the aad token header. Yet I still get:

[07.02.19 23:07:02] System.Private.CoreLib: Exception while executing function: Functions.myFuncName. Microsoft.IdentityModel.Clients.ActiveDirectory: Value cannot be null.
[07.02.19 23:07:02] Parameter name: authority.

What does this mean and how do I fix it?

Thanks!

@alexkolson
Copy link
Author

I should add my function works great if triggered at it's azure url, I just cant seem to get it to work locally.

@elksson
Copy link

elksson commented Nov 4, 2019

I am having this same issue when the azure function is triggered from azure not locally.

@psutradhar
Copy link

psutradhar commented Apr 1, 2020

Any update on this ticket? I am getting kind of the same error when I run my function locally.
I am getting,

System.Private.CoreLib: Value cannot be null.
Parameter name: s.

@khowling
Copy link

khowling commented Dec 4, 2020

If you are developing locally with the token binding, you need to set local settings to tell the function runtime how to federate with AAD. Add the following to your local.settings.json Values object:

"WEBSITE_AUTH_CLIENT_ID": "xxx",
"WEBSITE_AUTH_CLIENT_SECRET": "xxx",
"WEBSITE_AUTH_OPENID_ISSUER": "https://sts.windows.net/xxx"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants