AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.64k stars 2.65k forks source link

How to configure scopes for own Web APIs? #4685

Closed siddarthapal closed 2 years ago

siddarthapal commented 2 years ago

Core Library

MSAL.js v2 (@azure/msal-browser)

Wrapper Library

MSAL Angular (@azure/msal-angular)

Documentation Location

https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/lib/msal-angular/docs/v2-docs/msal-interceptor.md

Description

Hello Documentation team

We are using MSAL authentication library for our Angular 13 Project. I am trying to understand how we can use MSAL Interceptor for passing tokens as per the documentation. We are not able to understand "how to configure scopes for custom APIs?"

As per my little understanding, we need to configure scope on Azure Portal where we generated the client id. Could you please arrange to clarify?

siddarthapal commented 2 years ago

This is request for missing stuff from the documentation, not for the Angular 13 compatible MSAL library. I see something being closed at the bottom so I am confused.

siddarthapal commented 2 years ago

This is the URL, I guess:- https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-configure-app-expose-web-apis

It would be good, if we can add to documentation.

ellymakuba commented 2 years ago

That is the correct link, thank you. We will add that to our FAQ.

siddarthapal commented 2 years ago

That is the correct link, thank you. We will add that to our FAQ.

As a consumer of this package, having a link/reference at the location I mentioned would be far more helpful. I faced the issue and we can see the same. Everyone is not aware of all the things around Azure Authentication.

jasonnutter commented 2 years ago

@siddarthapal Fair feedback, we'll make sure that gets added.

siddarthapal commented 2 years ago

@siddarthapal Fair feedback, we'll make sure that gets added.

THANK YOU VERY MUCH FOR YOUR CONSIDERATION. HOPE THIS WOULD HELPS OTHERS.

ghost commented 2 years ago

This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @ellymakuba please follow up.

ghost commented 2 years ago

This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @ellymakuba please follow up.

ghost commented 2 years ago

This issue requires attention from the MSAL.js team and has not seen activity in 5 days. @ellymakuba please follow up.