Underscores cannot be set for email address domain names in keycloak user attributes.

Skip to first unread message


Oct 14, 2021, 8:54:41 PMOct 14
to Keycloak Dev
Please tell me about it.
When a user registers with keycloak, the email address can be set as attribute information.
However, if "_" (underscore) is set in the domain name, an error occurs.
(Example: aaa@bbb_ccc.com)

I am aware that underscores are sometimes prohibited in domain names such as URLs, but I would like to know if you know how the policy was made to prohibit them in domain names of email addresses.
(I would also like to understand the history of this policy in order to explain it to end users.)

Translated with www.DeepL.com/Translator (free version)

Pedro Igor Craveiro e Silva

Oct 15, 2021, 1:41:38 PMOct 15
to shohei, Keycloak Dev
It should be possible to change how attributes are validated if you are using the declarative User Profile [1].

By default (when this feature is disabled), validations to e-mail should respect a specific pattern. When enabled, you can define your own.

Pedro Igor

You received this message because you are subscribed to the Google Groups "Keycloak Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-dev/2f0dd007-e424-40fb-a632-d25a84c720cfn%40googlegroups.com.
Reply all
Reply to author
0 new messages