lcnlvrz

Onespan Email validation

0 votes

Our 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

0 votes

Hi 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

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Onespan Email validation

0 votes

Almost 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

0 votes

Hi 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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Onespan Email validation

0 votes

Take 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

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Attachments

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off