manishrasrani / ms-adal-angular6

This is a wrapper library for Angular 6+ (Angular 6.X.X and Angular 7.X.X) modules over Microsoft ADAL (Azure Active Directory Authentication Library)
https://www.npmjs.com/package/microsoft-adal-angular6
MIT License
34 stars 13 forks source link

Is there any plan to replace ADAL library with MSAL? #33

Open niravkanakhara opened 4 years ago

niravkanakhara commented 4 years ago

Currently all are migrating from azure ad v1 to V2. We should think about this upgrade also. Though MSAL is in preview but it look stable.

webdeveloperninja commented 4 years ago

@niravkanakhara My understanding is MSAL auth does not work with Azure functions yet (which really sucks). Check this out. https://docs.microsoft.com/en-us/azure/app-service/configure-authentication-provider-aad

niravkanakhara commented 4 years ago

I understand that....but my current need is in app service with angular only. And i like this wrapper on adal-angular but looking forward to have upgraded package using MSAL. Not sure how much stable MSAL itself is...atleast for app service with angular 7?

webdeveloperninja commented 4 years ago

I have an app that was using this for MSAL integration. Now I need to auth against an azure function and am reverting to ADAL. This is really nice for msal

https://www.npmjs.com/package/@azure/msal-angular

This is an example on a little excel interation I worked on. https://github.com/webdeveloperninja/ExcelComponent/blob/master/src/app/auth.service.ts

webdeveloperninja commented 4 years ago

If your calling into microsoft service like graph/outlook/365 MSAL is awesome. It does not look like it works if you have your own api/services to lock down.

niravkanakhara commented 4 years ago

You mean to say it will not work even if i want to authenticate backend api (app service) using MSAL ?

webdeveloperninja commented 4 years ago

So im really pulling my hair out trying to get this MSAL library to work with Azure funcs easy auth. Apparently App service ad auth only works with v1 AD tokens not v2 as per their docs. Apparently MSAL you can specify v1 or v2 tokens but I keep getting 401s. I dont fully understand how the app registrations/scopes work. Do you know if its possible to auth an app service with MSAL? Graph works great.

ChristofFritz commented 4 years ago

The official msal-angular library has been released and it's working flawlessly, I switched to it just two days ago, the switch was really easy on a huge angular 8 application we develop. https://www.npmjs.com/package/@azure/msal-angular