benbaran / adal-angular4

Angular 4/5/6/7 ADAL Wrapper
MIT License
86 stars 104 forks source link

Unable to access secured web api #66

Closed satheeshdiva closed 6 years ago

satheeshdiva commented 6 years ago

Not able to Access the secured web api keep getting Not authorized error even though i am passing the bearer token in the request

DanaEpp commented 6 years ago

Have you confirmed that the bearer token is correct? Use postman and directly send a GET request to your secured web API and inserting the bearer token. If its successful you should be able to determine that.

If its not, then can you look deeper into the message coming back from Azure AD and let us know the error you are getting?

geerzo commented 6 years ago

Please see the Example Project for a working example of calling the Graph API.