skoruba / Duende.IdentityServer.Admin

The administration for the Duende IdentityServer and Asp.Net Core Identity ⚡
Apache License 2.0
549 stars 194 forks source link

Unable to modify allowed characters in username. #156

Open DaveNatalieTripArc opened 1 year ago

DaveNatalieTripArc commented 1 year ago

Describe the bug

Unable to modify allowed characters in username.

The UserDto<TKey> class has a RegularExpression attribute on the UserName property. There is no way to modify this expression to allow additional characters.

Microsoft Identity has the ability to customize username characters via the AllowedUserNameCharacters option, but the set of allowed characters are hard-coded into Skoruba Business Logic.