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
typestringpre_enroll
appIdstringFido 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": "cVY8kvmq865dSsjQX9o1OQtUBiL4HzJa6D3D9bTSTz4VDzQXtUkjhjvBB9K03VMvy-FdedFUzLr9oVVqLzjjvw",
      "registrationDataappId": "BQSUr451Ay_mAvjiEdgw3rwnCWVVfk5RbgsI1QMqcvy1HDJc4feZTj5ovg7HNptHWz8sSVibh2HlrUp1iwlZQwOvwIOrr57bICljcrzNfEMKrzBWp_XUoKvpL4XOU8yVyTG_CHLuczWXCPM2qtqbECtCdc5GsaWvm2i1u8lXP_on-nvigsGsbLEzeTiGs3WlP5uvvn0um1Lx3luFvQheX9G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twFZBrzjqYXlgP2SDL68mNaDvJa8TYoWCNA8vvyFDVSQAAhttps://mysite.relayingparty.com",
      "sessionId":     "NTI2RDMyNzE1NDMwNTQ3NTUyNTI3QTRFMzk0OTM0NEI2RjM5NTAzMjc0Nzg2RDQ5NDk0NjU2NEM0NDM5MzczOTU4Njk2MzMxNkU0OTU4Njc3QTQ0Mzk3NjZDMzg0QTM4NTE2RgNTc0RDQ2NzQ3ODc3NEI3QTYxNDg3MTRDNkEzNDU2NTM0QzcyNTc3MjQ1NzE1MzZDNDI2QjYyNDU2RDc1NDQ3NjRENjY1MDUyNDE1QTYxNkM3QTM1NzYzODc5NTI0QjRGNTk0NA==",
      "usernameversion": "Mandy"U2F_V2"
    }
  ],
  "clientDataerrorMessage": "eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZmluaXNoRW5yb2xsbWVudCIsImNoYWxsZW5nZSI6ImNWWThrdm1xODY1ZFNzalFYOW8xT1F0VUJpTDRIekphNkQzRDliVFNUejQiLCJvcmlnaW4iOiJodHRwczovL2ZpZG9jZXJ0LnN1cmVwYXNzaWQuY29tIn0",
  "typeerrorCode": "enroll"0,
  "versiontype": "U2Fu2f_register_V2request"

}

 

...