Skip to content

Configure Emails with Special Characters

Follow the steps below to accommodate email addresses with special character in WSO2 Identity Server.

  1. Sign in to WSO2 Identity Server Management Console at https://<IS_HOST>:<PORT>/carbon as an administrator.

  2. On the Main menu of the Management Console, click Identity > Claims > List.

    Claims List menu-item

  3. Click http://wso2.org/claims.

    WSO2 Claim

  4. Under Email, click Edit.

    Claim Edit option

  5. Enter the required special characters (!#$%&'*+-=?^_) in the Regular Expression text box.

    WSO2 Claim Edit screen

    Using # and $

    • To add # to the email regex pattern:

      ^([a-zA-Z0-9_.-#])+\@(([a-zA-Z0-9#-])+.)+([a-zA-Z0-9#]{2,4})+$`

    • To add $ to the email regex pattern:

      ^([a-zA-Z0-9_.-\])+\@(([a-zA-Z0-9\\-])+.)+([a-zA-Z0-9\]{2,4})+

    Escaping $

    When using the $ character, make sure to use the appropriate escape characters, such as \, e.g., abc\[email protected]

Top