Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 'type' – The type of request to be  performed  by the server.  The following types are supported.
  • 'username' – The username (or token for the user) that this action is to be performed on.
  • 'spAccountLoginName'  – Your SurePassId server account name
  • 'spAccountLoginKey' – Your SurePassId server account  key

 


You can get your SurePass account credentials (server account name and key) from the the portal.  After logging in go to Settings and you will see the following page where the values are displayed.   


The system supports the following request types:

 

 types:



typedescriptionoperational area
add_u2f_account'add user account with U2F device to your Surepass SurepassId installationuser management
add_oath_accountadd user account with Oath device to your SurepassId installationuser management
add_u2f_deviceadd a u2f  2fa device to a user accountdevice management
add_oath_deviceadd an oath 2fa device to user accountdevice management



validate_u2f_userquery user meta data/authenticate the user name and password of the useruser user validation/authentication
find_devicequery device meta data by serial numberdevice management
validate_oath_userquery user meta data/authenticate user name and passworduser validation/authentication
add_u2f_deviceadd an additional 2fa device to an accountdevice management
delete_key delete a specific fido u2f security key from the users accountfido u2f key/origin management
delete_all_keysdelete all fido u2f security key from the users accountfido u2f key/origin management
validate_oath_otp validate a dynamic pass code send to the uservalidate Oath OTP
send_oath_otpsend a dynamic pass code send to the usersend Oath OTP
push_oath_otppush authentication request to the userpush authentication
pre_enrollperform the pre-enrollment process required to register a fido - pre-enroll u2f key for an origin u2f register step 1
enrollregister fido - enroll a u2f key for an origin u2f register step 2
pre_signperform the fido - pre-sign process to authenticate a u2f process u2f key for an origin u2f authentication step 1
'sign ' authenticate a u2f key for an origin u2f authentication step 2
'create_session_token ' create a session token for a particular  usermobile device state management
'expire_session_token'expire (make unusable) a session token for a particular usermobile device state management
'is_session_token_valid ' check to see if a session token is still valid for a particular usermobile device state management
'active_oath_device'activate an Oath devicedevice management
'sync_oath_device'synchronize clock for Oath HOTP/TOTP devicedevice management

...


A sample REST request body is a json request and looks like this: 


Code Block
languagejs
firstline1
titleRest/Json Request Example - Send Pass Code via SMS
{ 
  "type": "send_oath_otp",
  "username": "Manny",
  "spAccountLoginName": "accountname", 
  "spAccountLoginKey": "accountkey",
  "deliveryMethod": "sms"
}  

...

  • type - Echo of the type that was made on the request
  • errorCode – The numeric error code for the request.  An errorCode of 0 signifies success.
  • errorMessage – The displayable  error message for the request.  


Code Block
languagejs
titleRest/Json Response Example - Send Pass Code
{
  "type": "send_oath_otp",
  "errorCode": 0,
  "errorMessage": "OK"
}

 

 

...