Delete FIDO U2F Key
WCF
Method
 AuthServerU2FResponse DeleteSecurityKey(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string authServerPartnerUserLoginName, string appId, string keyIdentifier, string keyIdentifierType)
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 |
keyIdentifier | string | Identifier of the key to be deleted |
keyIdentifierType | short | 0 - Â keyIdentifier is a keyHandle, 1 - keyIdentifier is a friendly name |
Sample WCF C# Method
 AuthServerU2FResponse resp = DeleteSecurityKey("accountLogin", "accountKey", "Mandy", "https://mysite.relayingparty.com", "friendlyKeyName", 1);
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 | delete_key |
appId | string | Fido appId (origin) or facetId |
securityKeyName | string | Identifier of the key to be deleted |
securityKeyType | short | 0 - Â keyIdentifier is a keyHandle, 1 - keyIdentifier is a friendly name |
Sample REST/Json Method
 { "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "type": "delete_key", "username": "Mandy" "appId:" "https://mysite.relayingparty.com", "securityKeyName": "friendlyKeyName", "securityKeyType": 1 }
Sample REST/Json Response
{ "errorMessage": "", "errorCode": 0, "type": "delete_key" }