Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

why does AuthenticationContext.acquireToken take Resource uri as parameter

I'm wondering why does the method acquireToken in AuthenticationContext take Resource uri as parameter. knowing that it already take the application id, AAD could automatically guess the resource uri. The aim of this question is to understand which flows should be open in my backend server to be able to get the accessToken for power bi. should I open flows for : 

https://analysis.windows.net/powerbi/api or is it only used as parameter by AAD ?

 

I know for sure that I should open https://login.windows.net && https://api.powerbi.com

 

Thank you in advance !

No Replies