JonPSmith / AuthPermissions.AspNetCore

This library provides extra authorization and multi-tenant features to an ASP.NET Core application.

Home Page:https://www.thereformedprogrammer.net/finally-a-library-that-improves-role-authorization-in-asp-net-core/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AuthP AzureAD handler: make it "create new AuthP user" include default roles

JonPSmith opened this issue · comments

The AuthP AzureAD handler can add a new AuthP user if the user isn't already in the AuthP user list if the AddNewUserIfNotPresent setting is set to true. But the current version doesn't add any AuthP Roles to the new AuthP user.

In some cases you might want to provide some default AuthP Role(s) to the new user. We could achieve this adding a new AzureAD setting which holds a list of AuthP Role names that would be added to the new AuthP user.

Version 3.3.0 of the AuthP provides one way via the AzureAdNewUserManager, but that won't work with Azure AD B2C with social logins.

I'm leaving this open as I have an idea on how to implement the Azure AD B2C with social logins, but its a lot of work and I'll only do it if I think is useful.

No one has commented on this and there are other ways to do this, so I closing this issue.