I'm trying to demonstrate the Trello API but i'm having issues with the authentication procedure.
var ConnectToTrello = function () {
//console.log("Authenticating");
Trello.authorize({
type: 'popup',
name: 'Outlook Trello Add-In',
scope: { read: true, write: true, account: true },
success: authenticationSuccess,
error: authenticationError
});};
This opens a popup where I can do the authentication, then I get redirected (in the popup) to https://trello.com/1/token/approve and nothing happens. The popup is not closing.
Any help would be appreciated.
download the code here
I had the same issue until I tried running the ConnectToTrello function from a button. If you create a simple page with that javascript snippet being executed in the <script>
block it exhibits the behaviour you describe.
However, if you add a simple button with that function as the onclick event handler, then it works just fine.
<button onclick="ConnectToTrello();">press me!</button>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With