Reputation: 277
I have registered two application on which represents a client while another represents a backend web api in azure active directory. Now I have an angular SPA where in I want to use MSAL angular library to support authorization code flow using PKCE to obtain a auth code and redeem that and get auth_token, id_token and refresh token. So is it possible? I am not very sure on how to go about with this?
Upvotes: 0
Views: 1023
Reputation: 1602
Using MSAL.js with Angular
The current MSAL.js 2.x (msal-browser) implements auth code (w/ PKCE) flow. There is also an MSAL-Angular wrapper library, which comes with some extra features and glue code, and that is the one that implements implicit flow (because it is based on MSAL.js 1.x aka msal-core). However, you don't have to use it just because you have an Angular project. Instead, you can create your own authentication service using MSAL.js 2.x directly.please refer to this similar question for information
Upvotes: 1