Replacing ADAL.js with MSAL.js #1399
|
Just wanted to get some thoughts around this. After recently investigating granting access to specific scopes for the Office 365 CLI (blog here), I started looking into implementing something similar out of the box for the CLI. But soon released that the CLI currently uses the adal-node library which doesn't allow granting consent to specific scopes as its based on AAD v1. The yammer consent mechanism is more of a manual approach if I am not wrong. Since MSAL is based on AAD v2 and hence allows granting consent to specific scopes and is also going to be the auth library of choice moving forward, should we look at using it for the CLI? This would enable the consent or login commands to have an additional scope option which would only request the required permissions on the tenant. Just as an example: Either
OR
The default option could be to request all permissions just like now, with the option to request specific scopes for the more security conscious tenants. |
Replies: 8 comments 7 replies
|
@vman also noticed the |
|
That's interesting, so looks like |
|
The problem is that MSAL doesn't support device code auth which we need, so until that changes, we can't move. As for the |
|
Looks like we will have to track progress of |
|
Shall we close this issue until the GA of MSAL with the features we need and revisit the topic then? |
|
Sure. Makes sense to me. On Wed, 11 Mar 2020 at 6:18 pm, Waldek Mastykarz notifications@github.com
|
|
Just noticed that Device Code auth was added to |
|
A change to the logging in In |
Shall we close this issue until the GA of MSAL with the features we need and revisit the topic then?