Versions Compared

Key

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

WCF

 


Code Block
languagec#
title Method
 AuthServerU2FResponseEnrollAppU2FInit EnrollAppU2FInit(string authServerPartnerLoginName,
                                                string authServerPartnerLoginPassword,
                                                string authServerPartnerUserLoginName,
                                                string appId);


WCF parameterdata typedescription
authServerPartnerLoginNamestring
SurePassId
SurePassID account login name
authServerPartnerLoginPasswordstring
SurePassId
SurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
appIdstringFido appId (origin) or facetId


Code Block
languagec#
titleSample WCF C# Method
  AuthServerU2FResponseEnrollAppU2FInit resp = EnrollAppU2FInit("accountLogin",   
            "accountKey", 
            "Mandy", 
            "https://mysite.relayingparty.com");


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
 
pre_enroll
p1 
appId
 
stringFido appId (origin) or facetId


Code Block
languagejs
titleSample REST/Json Method
 {
  "spAccountLoginName": "accountLogin",  
  "spAccountLoginKey": "accountKey",
  "type": "pre_enroll",
  "username": "Mandy"
  "appId:" "https://mysite.relayingparty.com"
} 


Code Block
languagejs
titleSample REST/Json Response
 

 

...

{
  "SignRequest": [],
  "RegisterRequest": [
    {
      "challenge": "VDzQXtUkjhjvBB9K03VMvy-FdedFUzLr9oVVqLzjjvw",
      "appId": "https://mysite.relayingparty.com",
      "sessionId":     "NTc0RDQ2NzQ3ODc3NEI3QTYxNDg3MTRDNkEzNDU2NTM0QzcyNTc3MjQ1NzE1MzZDNDI2QjYyNDU2RDc1NDQ3NjRENjY1MDUyNDE1QTYxNkM3QTM1NzYzODc5NTI0QjRGNTk0NA==",
      "version": "U2F_V2"
    }
  ],
  "errorMessage": "",
  "errorCode": 0,
  "type": "u2f_register_request"
}