lundi 3 août 2015

Issue with unlinking AWS linked logins (ex. Facebook)

Referring : http://ift.tt/1HkWKRE

When trying to unlink facebook login from AWS by,

  //aws logout
  let unlinkParams = AWSCognitoIdentityUnlinkIdentityInput()
  unlinkParams.identityId = "COGNITO_ID"
  unlinkParams.logins = ["graph.facebook.com" : "TOKEN"]
  unlinkParams.loginsToRemove = ["graph.facebook.com"]
  let cognitoIdentity : AWSCognitoIdentity = AWSCognitoIdentity.defaultCognitoIdentity()
  cognitoIdentity.unlinkIdentity(unlinkParams).continueWithBlock({ task -> AnyObject! in
                return nil
            })

Linked logins becomes "DISABLED" from "graph.facebook.com". Is this expected behaviour or something going wrong in logout process?




Aucun commentaire:

Enregistrer un commentaire