Тёмный

Azure AD B2C - Add Roles To Your App In Less Than 10 Minutes 

SSW TV | Videos for developers, by developers
Подписаться 38 тыс.
Просмотров 16 тыс.
50% 1

In this video, Matt Goldman shows you how to customise the Azure AD B2C login process to add role claims to your JWT token - even though roles aren't supported by B2C out of the box.
Recorded by Matt Goldman at SSW Newcastle.
|| Subscribe for more content from SSW TV ||
|| Press like and leave a comment below to let us know how we're doing ||
Twitter ↴
/ ssw_tv
Facebook ↴
/ ssw.page
------------------------------------------------------------------------------
See more videos at tv.ssw.com
For more information about SSW's web application consulting services, please visit www.ssw.com.au...
Created by SSW TV | Videos By Developers, For Developers

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@get_ready
@get_ready 3 года назад
perfect timing for my pet project, thanks for this
@felipealmeida6091
@felipealmeida6091 2 года назад
You guys just got a new follower. Thanks! Very very helpfull
@user-ly8iq6lm7o
@user-ly8iq6lm7o 11 месяцев назад
Just what I was looking for! Thanks for providing this.
@JasonTaylorDev
@JasonTaylorDev 3 года назад
Nice work Matt ❤
@burtonrodman
@burtonrodman 2 года назад
Great video! Microsoft's docs makes things so hard 😒😒
@dandoescode
@dandoescode 3 года назад
Great demo - thanks!
@hugoforte
@hugoforte 2 года назад
Glorious! Would absolutely LOVE a code sample for this. - For the github examples - which one in particular were you using - For developer blogs talking about this - got any specifics?
@goforgoldman
@goforgoldman 2 года назад
This is my GitHub repo with this sample: github.com/matt-goldman/access-granted, no specific blogs come to mind but a quick search will give you hundreds :)
@hugoforte
@hugoforte 2 года назад
@@goforgoldman Thank you thank you thank you!=) Good timing too - you let me bang my head against it for 5 days - that's pretty much what I needed=)
@muqaddasmahmood6594
@muqaddasmahmood6594 3 года назад
can you share the sample code which are using?
@goforgoldman
@goforgoldman 2 года назад
github.com/matt-goldman/access-granted
@DG-cd3jb
@DG-cd3jb 2 года назад
Hi there. Your explanation really gives some idea about b2c to migrate. If possible, can you create a video to handle the user Signin, Signup, Edit profile, Reset Password flows via custom policies? Would really helps.
@SSWTV
@SSWTV 2 года назад
Hi D G, thanks for the feedback. We will add your suggestion to our backlog! :) Cheers, -SSW TV team
@dancristian3673
@dancristian3673 4 месяца назад
Any asp. Net core sample please? The xml if I add those roles trows error.
@moinfaiz87
@moinfaiz87 Год назад
Thank you Matt. I have one question. If function has not started or REST API is throwing error. Is there a way to continue the policy workflow execution with say some default value instead of failing the entire workflow?
@cropochispis743
@cropochispis743 2 года назад
Thanks a lot for the explanation! So if we have an Azure Active Directory with user's groups, how could we add them to get those groups into these custom claims and manage them from our B2C tenant?
@goforgoldman
@goforgoldman 2 года назад
If you're using AAD, it's best not to use B2C as well. AAD has most of the B2C features integrated into its B2X platform now. There are some docs online about using groups for both though. Using the approach in this video you could poll the Graph API for the user's groups in your Function app, and add those to the token the same way as in the video. Or as I said there are other methods you can find docs online for.
@Anonymous-tk6pm
@Anonymous-tk6pm 2 года назад
@@goforgoldman , can we use social media login using AAD? I'm more interested in using Microsoft, LinkedIn and Google Login. These features are available in B2C atm.
@goforgoldman
@goforgoldman 2 года назад
@@Anonymous-tk6pm Available in AAD now too (without B2C) via the B2X feature. It's very cool :)
@afgone123456
@afgone123456 2 года назад
Is there a way to add custom policy for OpenId Connect?
@goforgoldman
@goforgoldman 2 года назад
Hi Zaki, yes absolutely! In fact I've spent the last few weeks on a client project doing exactly this. There are some sample policies on GitHub that show you how to do this, start with those.
@afgone123456
@afgone123456 2 года назад
@@goforgoldman great thanks for reply.. so from my app do i call the custom policy sign in or the user flow? and how would custom layout work if I call custom policy?
@goforgoldman
@goforgoldman 2 года назад
@@afgone123456 If you're using a custom policy, that's what you would call. You can set a custom layout using the ContentDefinitions in your Extensions file. SSW can help with this, feel free to ping us for a free initial meeting if this is of interest.
@dancristian3673
@dancristian3673 4 месяца назад
Please share a web app sample for asp. Net core mvc. Because I tried your directions but I never get the group the user is part of using graph not even your approach... Thanks
@brighterbeat
@brighterbeat 2 года назад
Do you guys have this content in a blog post version?
@FraserMcLean81
@FraserMcLean81 2 года назад
Very cool, thanks for sharing. Any chance of source code access?
@goforgoldman
@goforgoldman 2 года назад
github.com/matt-goldman/access-granted
@test-bl2kc
@test-bl2kc 2 года назад
I dont even have the menu entry for user flows in my b2c tenant
@esdegan7176
@esdegan7176 2 года назад
does it have MFA with TOTP?
@goforgoldman
@goforgoldman 2 года назад
Yes, this is provided by B2C
@MaskHysteria
@MaskHysteria 2 года назад
Does this work with AuthorizeAttribute Roles?
@goforgoldman
@goforgoldman 2 года назад
Yep sure does, you have to change a couple of things though. Either use the full namespaced schema for the role in the az func (or wherever you're seeding the roles from), or specify the role claim type in your ASP.NET Core project.
@user-bq8wm1wn6s
@user-bq8wm1wn6s 5 месяцев назад
Can we configure PIM for Global admin in b2c tenant?
@_Calum
@_Calum 3 года назад
1:06 - free codes to scan 😁
Далее
Using Azure AD B2C for authenticating users
16:48
Просмотров 22 тыс.
Application User Roles with Azure B2C
26:15
Просмотров 7 тыс.
SEC000: Securing Blazor & Web APIs with AAD
30:25
Просмотров 8 тыс.
Deep dive into Azure AD B2C custom policies
51:15
Просмотров 7 тыс.
SSO with Azure AD B2C
45:13
Просмотров 8 тыс.
Working with Azure AD B2C in ASP.NET
27:11
Просмотров 17 тыс.
Using Azure B2C with An App
22:56
Просмотров 38 тыс.