Azure AD with role managment

Hi!

I'm a very new user to Radzen. I have used Radzen as a libary for a few of my blazor project but i recently started using the Radzen Client/IDE. I have a project where i need to login with Azure AD and that part is all setup. What i need next is to save the Azure AD user emil in a database and assign some roles to it just like the Default provider in Radzen Client does. Is it possible to do what im asking for?

To sum it up.

  • Login with Azure AD
  • Save emailadress in a database
  • Admin can mange roles inside the application
  • Set what sites are accessable with what role in complietime

Azure AD Groups are not an option here.

If i missed anything dont be afraid to ask!

1 Like

Hi @Gottegubben,

I am afraid Radzen does not support this. You cannot mix Azure AD authentication with the default ASP.NET Core Identity role management.

Well, then i need to go deeper and do some more custom coding.

I might figure it out somehow.

Thanks alot for your fast answer!

How did it go? Did you implement your own custom role/permission logic or did you find a way to attach to existing things: in Azure AD or in Radzen? Thank you for sharing some insights.
I just managed to get the email of the user after the authentication with Azure AD by a custom claim.

Hi, Yes i found a way to do this. ALOT of custom coding.

I was able to find the Email of a user when they logged in and then add custom roles to them by checking my own database for the email adress and then add a custom Claim

1 Like