...
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 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 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 | challenge | string | |
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": "24i6laoYB1COJShuAIFNnwhrMHDJ0Hd8UpZjz-uMrRo",
"clientData": "eyJjaGFsbGVuZ2UiOiIyNGk2bGFvWUIxQ09KU2h1QUlGTm53aHJNSERKMEhkOFVwWmp6LXVNclJvIiwib3JpZ2luIjoiaHR0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