When attempting to initiate the OAuth flow from Asana - (using a url like this ) - the flow is correctly working, and the resulting window even correctly calls window.opener.postMessage()
, as required in the app approval checklist. I can confirm that the message is received, since I am using the following snippet in the Asana window:
window.addEventListener('message', function(event) {
console.log('Received message:', event.data);
console.log('message:', event)
});
And it shows what you can see in the images for success and error. What is going on? To clarify the error message of Waiting for authorization. If nothing is happening, try again. only appears AFTER the message has been received, so I am sure the message is receiving the Asana window, it just isn’t being accepted. I cannot determine what in the JS is causing this error, but there is something about this postMessage that reaches the Asana window, but is ‘rejected’ in favor of this opaque error.
See screenshots below. Server is Google cloud run, dockerized.