Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm new to Microsoft.Identity.Web (and to ADB2C in general I'm afraid) and am struggling...
I want to call a Function from a Website. I have used the webapp2 and func2 templates to set everything up, but am confused by scopes and what to provide in the config.
I've done both my app registrations in Azure portal.
I've done "expose an API" within the Function app, and assigned permissions in the web app, and at the top of the Function App page the URL looks like:
https://<domain>.onmicrosoft.com/8839d78d-5788-46a7-9f89-a622bb314462
My scope is called "products.get".
I don't understand what I need to set for BaseURL and Scopes in appsettings.config. Currently I have this:
When I run the webapp and function I get an error: The scope 'api://8839d78d-5788-46a7-9f89-a622bb314462/products.get' provided in the request is not supported.
If I change the Scopes section to https://.onmicrosoft.com/8839d78d-5788-46a7-9f89-a622bb314462/products.get I can sign in but then it bounces between waiting for localhost and waiting for b2clogin.com and will not progress.
Hoping someone can point me in the right direction for what I've done wrong.
Thanks
Stuart
Beta Was this translation helpful? Give feedback.
All reactions