Versions Compared

Key

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

WCF

 


Code Block
languagec#
title Method
 AuthServerU2FResponseEnrollAppU2F EnrollAppU2F(string authServerPartnerLoginName,
                                                              string authServerPartnerLoginPassword,
                                                              string authServerPartnerUserLoginName,
                                                              string printedSerialNumber,
                                                              string securityKeyName, 
                                                              string b64RegistrationData,
                                                              string b64SessionId,
                                                              string b64ClientData,
                                                              string version);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassId account login name
authServerPartnerLoginPasswordstringSurePassId account login key
authServerPartnerUserLoginNamestringUser account login name
securityKeyNamestringA user assigned name for this security key
b64RegistrationDatastringBase 64 encoded registration data as per the Fido specification
b64SessionIdstringUnique SessionId for this Fido Request as per the Fido specification
b64ClientDatastringBase 64 encoded client data as per the Fido specification
versionstringU2F_V2
Code Block
languagec#
titleSample WCF C# Method
 AuthServerU2FResponseEnrollAppU2F resp = EnrollAppU2F("accountLogin",
                                                              "accountKey",
                                                              "Mandy,
                                                              string.Empty,
                                                              "My First Key", 
                                                              "eyJjaGFsbGVuZ2UiOiIyNGk2bGFvWUIxQ09KU2h1QUlGTm53aHJNSERKMEhk.....",
                                                              "NDI0MjQ3Njg0ODQ5NjMzMzZBNEQzMjZCMzYzNzZFMzk0RDU4Mzg3NTM1NDI3MjRGNTc3...",
                                                              "BQTqY2g-BaSb016nNC2qbAPFv4DX1jYQaCC5LcLiTNG17ch7CCDa37ISyACbgF4bOB94ouO...",
                                                              "U2f_V2");
Code Block
languagec#
titleSample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }

 


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassId account login name
spAccountLoginKeystringSurePassId account login key
usernamestringuser account login name
typestringenroll
securityKeyNamestringA user assigned name for this security key
registrationDatastringBase 64 encoded registration data as per the Fido specification
sessionIdstringUnique SessionId for this Fido Request as per the Fido specification
clientDatastringBase 64 encoded client data as per the Fido specification
versionstringU2F_V2
Code Block
languagejs
titleSample REST/Json Method
{
  "spAccountLoginName": "accountLogin",  
  "spAccountLoginKey": "accountKey",
  "clientData": "eyJjaGFsbGVuZ2UiOiIyNGk2bGFvWUIxQ09KU2h1QUlGTm53aHJNSERKMEhkOFVwWmp6LXVNclJvIiwib3JpZ2luIjoiaHR0cHM6Ly9maWRvY2VydC5zdXJlcGFzc2lkLmNvbSIsInR5cCI6Im5hdmlnYXRvci5pZC5maW5pc2hFbnJvbGxtZW50In0",
  "registrationData": "BQTqY2g-BaSRqu1Q0rQ0dIQ2EsI-b016nNC2qbAPFv4DX1jYQaCC5LcLiTNG17ch7CCDa37ISyACbgF4bOB94ouOQLao4SIsnoFkXEkct3SstNw16ZoOLVd-YFfRtcLPeeapCGfsPU1iRqi6gj2BVXBOSCQWmLbJvI8scgTDFUCGqnAwggKWMIIBfqADAgECAgkA_vbxDCTnvVEwDQYJKoZIhvcNAQEFBQAwXTELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExHzAdBgNVBAoTFlN1cmVQYXNzSUQgQ29ycG9yYXRpb24xGzAZBgNVBAMTElN1cmVQYXNzSUQgRklETyBDQTAeFw0xNTEyMDQxNTQxMzZaFw00MDEyMDQxNTQxMzZaMGoxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdGbG9yaWRhMR8wHQYDVQQKExZTdXJlUGFzc0lEIENvcnBvcmF0aW9uMSgwJgYDVQQDEx9TdXJlUGFzc0lEIFRhcFN1cmUgTkZDIERlbW8gMS4wMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE3VwHdmEpjBXvRXnPKvuioAe37Aq16i-8VN0pVV_E7Wi7yZUVpHim0qi9uzXAwpwV4JlXHTIJJkYJiB_qNruToaMXMBUwEwYLKwYBBAGC5RwCAQEEBAMCBDAwDQYJKoZIhvcNAQEFBQADggEBAJDRm6bGThj6nqMBtjHFIv02xM4rulNm4swRjKk3JZSea2xQd5ne-L_l2Uyd4vnG21JWA28Bc2TOl7ZlOmvZv8PujHSP3a_xqnsLH-6UMPaH7Q8EZldQCNDC_sWS8YjJBXLEMv9a-lhUWRICOsnqJZRU3N_-i0L7Cua5E11_6t4nYgNUo_2HdDlu_MD1yDyUSVTkcav7r6CG39Z2jyjOE2cgkPvsp-sTYuDm2LzEHH0rO1PKk2uFxqka2R6K8Zm_qpyXPBQhL3WKO7TfqDmiQRJSoSJAXrRPUZW0RVAPvEloC6XeWXhkLA3hFPCtLOXPfP2E6HLiUSWSLHkJkEXvbaMwRQIhAKRBpsB_ydqFLYcl04yrVOZDaxFNkzHt4BRGKFfHWXKOAiAYV8KRp0A13DNteEKHGBIvb1OWrK9RmYucqYSdVYj4ZQ",
  "securityKeyName": "TapID117",
  "sessionId": "NDI0MjQ3Njg0ODQ5NjMzMzZBNEQzMjZCMzYzNzZFMzk0RDU4Mzg3NTM1NDI3MjRGNTc3NjYzNDI3OTc4NEYzMTZFMzE1NjcxNjU0MzY5NDU2MzU2NTIzNjM5MzI1MDYzMzMzNw==",
  "type": "enroll",
  "username": "Mandy",
  "version": "U2F_V2"
}
Code Block
languagejs
titleSample REST/Json Response
 
{
  "errorMessage": "",
  "errorCode": 0,
  "type": "enroll"
}

 

...