ck123 | Posts: 4

Custom ID Format

0 votes

Hello,

Can't seem to find the documentation that I swear I saw at one point that said the ID fields must meet certain criteria? Am I crazy?

I have a Regex in my code ([^a-zA-Z0-9_\-.]+) to only keep alpha numeric, _, -, and . -- can't remember if there was a good reason for doing so.

For instance, in a "document" object, I run the document name thru regex to get the ID:

{

"id": "TestDocument",

"name": "Test Document"

}
 

 

 


Duo_Liang | Posts: 3776

Reply to: Custom ID Format

1 votes

Hi ck123,

 

I doubt it's documented somewhere officially, but OneSpan Sign server does validate both role ID, signer ID and document ID with the regex expression "[a-zA-Z0-9_\-.]+" as you mentioned - no space and other special characters. 

 

Duo


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