简体   繁体   中英

Do msal-angular package supports Authorization code flow using PKCE?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM