Versions Compared

Key

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

WCF

 


Code Block
languagec#
title Method
  AuthServerU2FResponseSignAppU2F SignAppU2F(string authServerPartnerLoginName,
                                                              string authServerPartnerLoginPassword,
                                                              string authServerPartnerUserLoginName,
                                                              string printedSerialNumber,
                                                              string b64SessionId,
                                                              string b64ClientData,
                                                              string b64SignData);


WCF parameterdata typedescription
authServerPartnerLoginNamestring
SurePassId
SurePassID account login name
authServerPartnerLoginPasswordstring
SurePassId
SurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
      
printedSerialNumberstringA specific device assigned to this user. If this is left empty then the first device assigned is used
b64SessionIdstringUnique SessionId for this Fido Request as per the Fido specification
b64ClientDatastringBase 64 encoded client data as per the Fido specification
b64SignData stringBase 64 encoded sign data as per the Fido specification


Code Block
languagec#
titleSample WCF C# Method
  AuthServerU2FResponseSignAppU2F SignAppU2F("accountLogin",
                                                              "accountKey",
                                                              "Mandy",
                                                              string.Empty,
                                                              "NTk2ODYyMzczMDQxMzY2QzYzNEI2RTUwNjEzNzQ5Nzc3QTMzNDg2RjVBMzU2ODQxNjE2Qz...", 
                                                              "eyJjaGFsbGVuZ2UiOiJqcGFEM1FNeU9pX0RQRjgzQ0ZRdVl1dHZPNFRvZ19EWkJla3...",
                                                              "AQAAANQwRQIgZEyk0CoSIEZ8I_YkwBX3zAW9bQVeygu9S0v925lOLOMCIQCxM333XgLmuB168a");


Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

 


REST


REST parameterdata typedescription
spAccountLoginNamestring
SurePassId
SurePassID account login name
spAccountLoginKeystring
SurePassId
SurePassID account login key
usernamestringuser account login name
typestring
 p1  
sign
psnstringA specific device assigned to this user. If this is left empty then the first device assigned is used
sessionIdstringUnique sessionId for this Fido Request as per the Fido specification
clientDatastringBase 64 encoded client data as per the Fido specification
signatureDatastringBase 64 encoded sign data as per the Fido specification
versionstringU2F_V2


Code Block
languagejs
titleSample REST/Json Method
 {
   "spAccountLoginName": "accountLogin",  
   "spAccountLoginKey": "accountKey",
   "clientData": "eyJjaGFsbGVuZ2UiOiJqcGFEM1FNeU9pX0RQRjgzQ0ZRdVl1dHZPNFRvZ19EWkJla3ppbzFvTVpJIiwib3JpZ2luIjoiaHR0cHM6Ly9maWRvY2VydC5zdXJlcGFzc2lkLmNvbSIsInR5cCI6Im5hdmlnYXRvci5pZC5nZXRBc3NlcnRpb24ifQ",
  "sessionId": "NTk2ODYyMzczMDQxMzY2QzYzNEI2RTUwNjEzNzQ5Nzc3QTMzNDg2RjVBMzU2ODQxNjE2QzUwNTk2QTQxNkU3NzUwMzA0MTQyNDg2QjY2NDc2NTc5NTA1OTQxNkM1NzU1NDY2Qw==",
  "signatureData": "AQAAANQwRQIgZEyk0CoSIEZ8I_YkwBX3zAW9bQVeygu9S0v925lOLOMCIQCxM333XgLmuB168a_yWwgmttoFYpKqtr7rJcEM05oBLg",
  "type": "sign",
  "username": "Mandy",
  "version": "U2F_V2"
}


Code Block
languagejs
titleSample REST/Json Response
 

 

...

{
  "errorMessage": "",
  "errorCode": 0,
  "type": "sign"
}