Delete FIDO U2F Key

WCF


Method
 AuthServerU2FResponse DeleteSecurityKey(string authServerPartnerLoginName,
                                                string authServerPartnerLoginPassword,
                                                string authServerPartnerUserLoginName,
                                                string appId,
                                                string keyIdentifier,
                                                string keyIdentifierType)
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
appIdstringFido appId (origin) or facetId
keyIdentifierstringIdentifier of the key to be deleted
keyIdentifierTypeshort0 -  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 parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringdelete_key
appIdstringFido appId (origin) or facetId
securityKeyNamestringIdentifier of the key to be deleted
securityKeyTypeshort0 -  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"
}