2
votes

We currently hosted an angular app in azure and are using ADAL for authentication.

Now, we want it to be used by external customers as well and hence wish to integrate Azure AD B2C with our app.

First, to test it locally, I created Azure AD B2C tenant and registered both my Angular app and ASP.NET core Web API with that tenant. The app runs on http://localhost:4200/ and Web API runs on http://localhost:53040.

I could not figure out how to replace the ADAL code with the MSAL code in the my angular app.

Please help me out with this.

1

1 Answers

1
votes

Im facing today exact same scenario and Im trying this "official" sample:

https://github.com/AzureAD/microsoft-authentication-library-for-js/tree/dev/lib/msal-angular/samples/MSALAngularDemoApp

I hope it helps anybody else, that's the only good Angular 4+ sample I was able to find.