Pradeep
Pradeep

Reputation: 5530

How to implement the AAD B2C feature in angular2 application using typescript?

I developed web application using angular2 and typescript. But one of my client asked the feature as Azure B2C, implement in angular2 application for logging customers in to this application instead of Oauth.

For that I did the simple example using below link to implement Azure B2C concept for .NET Web app.

Azure AD B2C: Build a .NET web app

The .Net web application worked fine but I want to implement the same feature in angular2 application using typescript.

Can you please tell me how to implement the azure B2C feature in angular2 application?

Upvotes: 2

Views: 1278

Answers (1)

Martin Brandl
Martin Brandl

Reputation: 58981

At the moment there is no official module / library available to use AAD B2C in a SPA. Mostlikely the new library MSAL (Microsoft Authentication Library) will support AAD B2C anytime in the future.

Currently you have to use adal.js and modify it yourself to work with AAD B2C. You probably want to use the implicit flow in order to do this because it doesn't reveal the client secret to the clients. Here is a good overview about AAD B2C for Single-Page Application.

Upvotes: 4

Related Questions