AuthPermissions.AspNetCore icon indicating copy to clipboard operation
AuthPermissions.AspNetCore copied to clipboard

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

Open JonPSmith opened this issue 3 years ago • 1 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.

JonPSmith avatar May 14 '22 12:05 JonPSmith

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.

JonPSmith avatar Jun 16 '22 13:06 JonPSmith

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

JonPSmith avatar Jan 03 '23 11:01 JonPSmith