sureshchahal / angular2-adal

Angular 2 wrapper for adal.js
MIT License
41 stars 50 forks source link

Resource to use with acquireToken #56

Open garybushey opened 7 years ago

garybushey commented 7 years ago

What string should be used as the resource when calling "acquireToken"? I have tried my tenant name but that does not seem to work.

dominicusmento commented 7 years ago

It depends on the resource you want to access. For the graph api it would be: 'https://graph.microsoft.com' for the dynamics crm it would be the first part of your crm url: 'https://organization.crm.dynamics.com', note that if you are on the crm3 subdomain then it would be: 'https://organization.crm3.dynamics.com'..

DigitalKrony commented 7 years ago

I'm a little lost when accessing this function. Is there an example of it's use?

When I'm calling the function all I get back is the function as a return.

e.g. BoundCallbackObservable{...}