stonith404 / pocket-id

A simple OIDC provider that allows users to authenticate with their passkeys to your services.
BSD 2-Clause "Simplified" License
221 stars 2 forks source link

🚀 Feature: Support more characters in usernames #20

Closed alec-hs closed 2 weeks ago

alec-hs commented 2 weeks ago

Feature description

Support more characters in usernames. Ideally hyphen/ dash - and @

Pitch

These are often used by lots of systems and can be mapped as an attribute so support for more chars would be great.

stonith404 commented 2 weeks ago

Are @ really used in usernames? Do you have an example of a service that uses an @ in the username?

alec-hs commented 2 weeks ago

Some platforms use email as username - anyone who uses MS Entra as an ID source often has this requirement as UPN is name@domain. Additionally, unless there is some technical limitation on what characters can be used in usernames it seems arbitrary to restrict.

stonith404 commented 2 weeks ago

This should be added in v0.4.0. Let me know if there are still too much constraints.