Asana OAuth flow shows "Waiting for authorization. If nothing is happening, try again."

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.


Can you post the HTML source of your App Component’s auth page?

(FYI I moved your post to the Developers & API > App Components section underneath the API section.)

Deny and Accept requests/responses shown. Unless you meant the initial redirect page?

Appreciate your thoughts here.


Hmm, that looks right to me. Not sure what the issue is…

@Andrew-asana maybe you can help?

Any thoughts here? Still seeing the same issue with no helpful error message. If I could just get a better sense of the js error, I would have a much better sense of why this is happening.