In our application we are using Trello authentication and authorization flow to get the consent from user. Below is the code sample that we are using for user Trello Authorization.
Trello.authorize({
type: "redirect",
name: "Trello for MyApp",
scope: {
read: true,
write: true
},
expiration: "never",
success: authenticationSuccess,
error: authenticationFailure
});
function authenticationSuccess() {
console.log("Authentication success");
}
function authenticationFailure() {
console.log("Authentication failed");
}
Once user chosen an account and login, trello is giving control back to my application by calling success call back method "authenticationSuccess". But If user clicks on "DENY" button in authorization screen, then trello is not giving control back to my application. The failure call back method "authenticationFailure" is not executing. Could you please suggest me, how can I get the control back to my App when user clicks on "DENY" button?