Search
🔑

SimpleKey

This document describes SimpleKey authentication.
Index

SimpleKey Verify

Use to authenticate with a SimpleKey issued by Credential.
In the request header, the Key of SimpleKey is X-Synctree-Auth-SimpleKey.
Example of using a block
No.
Function
1
Configure the block to contain SimpleKey in the request data.
2
Fetch the Request data.
3
Extract SimpleKey information with the Get HashMap Variable block.
4
Put the extracted SimpleKey in a variable and verify it with the SimpleKey Verify block.
5
Return the true if the SimpleKey entered passes the verification.
6
Return the 'Credit invalid' error message if you have not entered or entered SimpleKey incorrectly.