WCF
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponseEnrollAppU2F EnrollAppU2F(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string printedSerialNumber, string securityKeyName, string b64RegistrationData, string b64SessionId, string b64ClientData, string version); |
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string |
SurePassID account login name | |
authServerPartnerLoginPassword | string |
SurePassID account login key | ||
authServerPartnerUserLoginName | string | User account login name |
securityKeyName | string | A user assigned name for this security key |
b64RegistrationData | string | Base 64 encoded registration data as per the Fido specification |
b64SessionId | string | Unique |
SessionId for this Fido Request as per the Fido specification | ||
b64ClientData | string | Base 64 encoded client data as per the Fido specification |
version | string | U2F_V2 |
Code Block | ||||
---|---|---|---|---|
| ||||
AuthServerU2FResponseEnrollAppU2F resp = EnrollAppU2F("accountLogin", "accountKey", "Mandy, string.Empty, "My First Key", string b64RegistrationData"eyJjaGFsbGVuZ2UiOiIyNGk2bGFvWUIxQ09KU2h1QUlGTm53aHJNSERKMEhk.....", string b64SessionId"NDI0MjQ3Njg0ODQ5NjMzMzZBNEQzMjZCMzYzNzZFMzk0RDU4Mzg3NTM1NDI3MjRGNTc3...", string b64BrowserData"BQTqY2g-BaSb016nNC2qbAPFv4DX1jYQaCC5LcLiTNG17ch7CCDa37ISyACbgF4bOB94ouO...", "U2f_V2"); |
Code Block | ||||
---|---|---|---|---|
| ||||
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 |
enroll | ||
securityKeyName | string | A user assigned name for this security key |
registrationData |
string | Base 64 encoded registration data as per the Fido specification | |
sessionId | string | Unique SessionId for this Fido Request as per the Fido specification |
clientData | string | Base 64 encoded client data as per the Fido specification |
version | string | U2F_V2 |
Code Block | ||||
---|---|---|---|---|
| ||||
{ "challenge{ "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "clientData": "cVY8kvmq865dSsjQX9o1OQtUBiL4HzJa6D3D9bTSTz4eyJjaGFsbGVuZ2UiOiIyNGk2bGFvWUIxQ09KU2h1QUlGTm53aHJNSERKMEhkOFVwWmp6LXVNclJvIiwib3JpZ2luIjoiaHR0cHM6Ly9maWRvY2VydC5zdXJlcGFzc2lkLmNvbSIsInR5cCI6Im5hdmlnYXRvci5pZC5maW5pc2hFbnJvbGxtZW50In0", "registrationData": "BQSUr451Ay_mAvjiEdgw3rwnCWVVfk5RbgsI1QMqcvy1HDJc4feZTj5ovg7HNptHWz8sSVibh2HlrUp1iwlZQwOvwIOrr57bICljcrzNfEMKrzBWp_XUoKvpL4XOU8yVyTG_CHLuczWXCPM2qtqbECtCdc5GsaWvm2i1u8lXP_on-nvigsGsbLEzeTiGs3WlP5uvvn0um1Lx3luFvQheX9GIcsClghvMdWPUeyf6SFuy26q9oMyScoUKxH6gFGt2FRmk6V74BnDikG1GF27HqB8Cu-icwkbbnvJQK55sUtykzBm_02N__bpbr-Gw2kpmLmUWt3J3kGN5UKyFlgPc453rlzCCApUwggF9oAMCAQICCQD-9vEMJOe9UjANBgkqhkiG9w0BAQUFADBdMQswCQYDVQQGEwJVUzEQMA4GA1UECBMHRmxvcmlkYTEfMB0GA1UEChMWU3VyZVBhc3NJRCBDb3Jwb3JhdGlvbjEbMBkGA1UEAxMSU3VyZVBhc3NJRCBGSURPIENBMB4XDTE1MTIyNDE5MjQ0MVoXDTQwMTIyNDE5MjQ0MVowaTELMAkGA1UEBhMCVVMxEDAOBgNVBAgTB0Zsb3JpZGExHzAdBgNVBAoTFlN1cmVQYXNzSUQgQ29ycG9yYXRpb24xJzAlBgNVBAMTHlN1cmVQYXNzSUQgQXBwU3VyZSBWaXJ0dWFsIDEuMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFY2s1r2IcQ8GMw_QsGmL9N6xjB3MiX_3jJSkpi4pRHpULd-cPtAhUZG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0VUJpTDRIekphNkQzRDliVFNUejQiLCJvcmlnaW4iOiJodHRwczovL2ZpZG9jZXJ0LnN1cmVwYXNzaWQuY29tIn0enroll", "typeusername": "enrollMandy", "version": "U2F_V2" } |
Code Block | ||||
---|---|---|---|---|
| ||||
...
{
"errorMessage": "",
"errorCode": 0,
"type": "enroll"
} |