You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
I guess apiURL is the url is the actual address of where the aPI is published, and that's pretty clear.
I totally cannot understand how to set the "scope" variable above: my guess is that "https://fabrikamb2c.onmicrosoft.com/demoapi/" is the appID URI of the ApiAPP, but this is not explained in the article, and also I don't understand where demo.read comes from, and the role of the leading openid word.
Please help.
Thanks :)
The text was updated successfully, but these errors were encountered:
The explanation:
var scope = 'openid https://fabrikamb2c.onmicrosoft.com/demoapi/demo.read';
is a space-separated string of scopes.
"openid" is needed, as far as I understood, to get the ID_Token
the second part is the concatenation of the AppID URI of the ApiAPP and the scope VALUE, in this case a scope is created with value "demo.read" in the apiapp application configuration.
Hello,
I am trying reproduce this sample with an ApiApp I developed.
I cannot face how to properly set the variables below:
//API url
var apiURL = 'https://fabrikamb2chello.azurewebsites.net/hello';
var scope = 'openid https://fabrikamb2c.onmicrosoft.com/demoapi/demo.read';
I guess apiURL is the url is the actual address of where the aPI is published, and that's pretty clear.
I totally cannot understand how to set the "scope" variable above: my guess is that "https://fabrikamb2c.onmicrosoft.com/demoapi/" is the appID URI of the ApiAPP, but this is not explained in the article, and also I don't understand where demo.read comes from, and the role of the leading openid word.
Please help.
Thanks :)
The text was updated successfully, but these errors were encountered: