Onespan Email validation
Wednesday, March 6, 2024 at 02:58pmOur api encounter multiple issues when update role email
e.g: [email protected] is considered invalid for onespan api
Could you clarify which type of email validation onespan api does? Beaucase it seems this is a false positive validation
If you do some kind of weird or special email regex validation, it would be very helpful if you can provide a javascript regex compatible with some samples where pass and fails
{ "code": 400, "messageKey": "error.validation.invalidEmail", "message": "Email address is invalid: '[email protected]'" }
Kind regards
Luciano
Reply to: Onespan Email validation
Wednesday, March 6, 2024 at 04:27pmHi Luciano,
Thanks for your post! For this example in particular, "@gmail.con" (not gmail.com) doesn't sound like a valid domain to me.
In terms of how OneSpan Sign is validating the email domain, please raise this question to our support team ([email protected]) and move the conversation to a more private channel.
Duo
Reply to: Onespan Email validation
Wednesday, March 6, 2024 at 04:41pmAlmost all email regex out there will validate an email like that. That's why i'm wondering which regex onespan sign uses internally to validate an email destinatation
My platform needs to be align about how onespan sign validate email because i need to show some feedback to the user in case email is incorrect
Reply to: Onespan Email validation
Thursday, March 7, 2024 at 09:02amHi Luciano,
There are many open sourced library out there to help validate email. In particularly if you are Java user, you can use Apache Commons Validator.
Duo
Reply to: Onespan Email validation
Thursday, March 7, 2024 at 09:29amTake Apache Commons Validator for example, in terms of the email domain validation, they hosted a generic approval list here for the Top Level Domain (TLD), where "con" wasn't considered as a valid domain, also see the attached screenshot.
Duo