WCF
Method
AuthServerU2FResponseEnrollAppU2FInit EnrollAppU2FInit(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string appId)
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId account login name |
authServerPartnerLoginPassword | string | SurePassId account login key |
authServerPartnerUserLoginName | string | User account login name |
appId | string | Fido appId (origin) or facetId |
Sample WCF C# Method
AuthServerU2FResponseEnrollAppU2FInit resp = EnrollAppU2FInit("accountLogin", "accountKey", "Mandy", "https://mysite.relayingparty.com");
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; }
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId account login name |
spAccountLoginKey | string | SurePassId account login key |
username | string | user account login name |
type | string | pre_enroll |
appId | string | Fido appId (origin) or facetId |
Sample REST/Json Method
{ "type": "pre_enroll", "username": "Mandy" "appId:" "https://mysite.relayingparty.com");" }
Sample REST/Json Response
{ "challenge": "cVY8kvmq865dSsjQX9o1OQtUBiL4HzJa6D3D9bTSTz4", "registrationData": "BQSUr451Ay_mAvjiEdgw3rwnCWVVfk5RbgsI1QMqcvy1HDJc4feZTj5ovg7HNptHWz8sSVibh2HlrUp1iwlZQwOvwIOrr57bICljcrzNfEMKrzBWp_XUoKvpL4XOU8yVyTG_CHLuczWXCPM2qtqbECtCdc5GsaWvm2i1u8lXP_on-nvigsGsbLEzeTiGs3WlP5uvvn0um1Lx3luFvQheX9GIcsClghvMdWPUeyf6SFuy26q9oMyScoUKxH6gFGt2FRmk6V74BnDikG1GF27HqB8Cu-icwkbbnvJQK55sUtykzBm_02N__bpbr-Gw2kpmLmUWt3J3kGN5UKyFlgPc453rlzCCApUwggF9oAMCAQICCQD-9vEMJOe9UjANBgkqhkiG9w0BAQUFADBdMQswCQYDVQQGEwJVUzEQMA4GA1UECBMHRmxvcmlkYTEfMB0GA1UEChMWU3VyZVBhc3NJRCBDb3Jwb3JhdGlvbjEbMBk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