Angular & Microsoft Login - Using Microsoft Authentication Library (MSAL)

preview_player
Показать описание

Part 2: Using MSAL interceptor to call APIs with Access Token

Intro: (00:00)
Azure Active Directory & ClientId: (01:00)
Create Angular App: (02:34)
Use Microsoft Authentication Library for Angular: (04:02)
Login in Popup & Logout: (07:36)
Login with Redirect: (14:33)
Routings: (17:20)
Guard a Route: (20:53)
Display username: (23:51)
Outro: (25:16)
Рекомендации по теме
Комментарии
Автор

This is something perfect I was looking for. Only thing I missed is if there were some API calls on protected page.

tewatiainaustralia
Автор

This video really saved me to get my user story completed. Thanks a lot

ankitp
Автор

Hi Genka, a couple of days ago I finished my application using the same settings too, thank you very much for posting these types of videos, it is so useful to have tools like that for our projects. Congrats!!!

jhondiaz
Автор

This video is very explanatory and useful. Thank you for posting this.

sreejithg
Автор

Super simple and perfectly explained tutorial. Thanks.

neerajk.
Автор

thank you so much... This video is very useful to me and I go to implement that in my project.... Thank you!

Vega
Автор

fantastic video and explanation, thank you for the very clear example!

brotor
Автор

Wow, you explained it very well. a big thanks to u for explaining msal config. yesterdayi watched a tutorial video on msal cant get it but today you teached it very well. tysm

avanishkumar
Автор

Many many thanks for awesome video! Very clear and full of knowledge

radekfluder
Автор

Simple and clear explanation. Thanks Genka. !

nawarajkhadka
Автор

Well explained. I tried similar way but looks like some modification is needed with latest angular and msal libraries.

Like getting issues like Msal instance should be initialised before make use of it.

If you could do similar video with latest libraries would be helpful.

ChandraMohanS_CMS
Автор

Thanks crack, great video, this is very helpful for a current project, greetings from Medellin - Colombia

DacarSoft
Автор

Unable to perform routing after logging in and even on reload, it asks to sign in again, could you please help ? It's urgent.

binny
Автор

Hi, I am getting this error " Error: Cannot resolve type entity i2.CommonModule to symbol
at

iyrotll
Автор

can somone please help me, what should be the redirect URL? is it url where i should send user after login? or something else, i am getting error ' url has no segment
code'

dawoodabdullah
Автор

Thank you for the video. Really is very good!! just what I needed

MarisolEspinosaMedina
Автор

I have suffer from one issue with redirect login I have two outside page forgot-password and reset-password so that, s why I have load login page on empty route . beacause user have to access to come back login page from this outside page. but the problem is that when i click on login button after enter the credentials route firstly come to empty route that is login page and after login, login page is visible for one second and then user redirect to home page. beacuse the getAllaccounts give the response after some time and isLoggedin () not give true response immedatialy. so thats why login page comes in screen for few second after login.

vivekkalia
Автор

Thanks for sharing, I am able to generate the access token, but the issue is when I am calling Custom API(.net API), its saying 401 error.

vrvnjvy
Автор

Hi Genka, I am using redirect directly but not sure y it is not working. i am using b2c application

FitnFunAnjali
Автор

Thanks. it's worked for me. but i am not redirecting back to my app after logout.

yashtrivedi
welcome to shbcf.ru