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

**URL:** <https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595>\
**Category:** App Components\
**Tags:** authentication\
**Created:** [4 June 2025 20:26 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595 "2025-06-04T20:26:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameer\_Mehra](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/sameer_mehra/32/278546_2.png) [@Sameer\_Mehra](https://forum.asana.com/u/Sameer_Mehra)\
**Post date:** [4 June 2025 20:26 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/1 "2025-06-04T20:26:15Z")

</div>

When attempting to initiate the OAuth flow from Asana - (using a url like [this](https://app.asana.com/0/oauth-authorize?client_id=1209460304266855) ) - the flow is correctly working, and the resulting window even correctly calls `window.opener.postMessage()`, as required in the [app approval checklist](https://developers.asana.com/docs/app-component-approval-checklist#3-handle-the-deny-use-case). I can confirm that the message is received, since I am using the following snippet in the Asana window:

```js
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.

 ![Screenshot 2025-06-04 at 4.15.56 PM](https://us1.discourse-cdn.com/asana/original/4X/9/e/7/9e71c372c464efd1ddad938d68587c48d3b56090.png)  
 ![Screenshot 2025-06-04 at 4.19.05 PM](https://us1.discourse-cdn.com/asana/original/4X/8/5/b/85b9bf8af1d043adfa1b777dafaf10ab00418797.png)

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [5 June 2025 02:35 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/2 "2025-06-05T02:35:38Z")

</div>

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.)

---

<div class="post-metadata">

**Author:** ![Sameer\_Mehra](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/sameer_mehra/32/278546_2.png) [@Sameer\_Mehra](https://forum.asana.com/u/Sameer_Mehra)\
**Post date:** [5 June 2025 14:46 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/3 "2025-06-05T14:46:01Z")

</div>

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

Appreciate your thoughts here.

 ![Screenshot 2025-06-05 at 10.41.49 AM](https://us1.discourse-cdn.com/asana/original/4X/4/b/2/4b271e93c8dfc5f055165b12231f5ec3cc609336.png)  
 ![Screenshot 2025-06-05 at 10.42.09 AM](https://us1.discourse-cdn.com/asana/original/4X/6/f/b/6fb9fc932f25162027cf486a4300ab98e93841f7.png)

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [5 June 2025 16:27 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/4 "2025-06-05T16:27:32Z")

</div>

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

@Andrew-asana maybe you can help?

---

<div class="post-metadata">

**Author:** ![Sameer\_Mehra](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/sameer_mehra/32/278546_2.png) [@Sameer\_Mehra](https://forum.asana.com/u/Sameer_Mehra)\
**Post date:** [16 June 2025 19:09 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/5 "2025-06-16T19:09:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Sameer\_Mehra](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/sameer_mehra/32/278546_2.png) [@Sameer\_Mehra](https://forum.asana.com/u/Sameer_Mehra)\
**Post date:** [30 June 2025 21:48 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/6 "2025-06-30T21:48:13Z")

</div>

Well, ultimately this is now working but to be perfectly honest, I’m not sure what happened. Just documenting some of the steps I took in case it helps:

1. Temporarily hard-coded the expected response for the ‘deny’ case, exactly as written in the approval checklist, and hosted this as a static file as a temporary redirect url. Doing this actually did show the expected message on the Asana side (“You denied authorization of the app.”). One of my theories is that this seems to have ‘unlocked’ something on the asana side, because once I switched back to non-hard-coded, it seems to have worked. [App component approval checklist](https://developers.asana.com/docs/app-component-approval-checklist)
2. Double checked on my backend that there wasn’t an issue with the request to the token endpoint (“[https://app.asana.com/-/oauth\_token](https://app.asana.com/-/oauth_token)”), since there was a moment in my testing where the redirect url didnt match - had to re-match them up again (the redirect url that started the flow should match the one passed in the call to the token api)
3. Security Headers - temporarily added cors headers like so to the callback response:

```json
{
        'Strict-Transport-Security': 'max-age=31556926; includeSubDomains',
        'Cache-Control': 'no-store, no-cache, must-revalidate, max-age=0',
        'Pragma': 'no-cache',
        'Expires': '0',
        'X-Content-Type-Options': 'nosniff'
}

```

1. (Just a recommendation) - error in my backend should not return the ‘deny’ html, as this caused some confusion on my side, and asana may have been waiting for the request without it ever being received.

One of these things or a combination seems to have fixed it… I appreciate the Asana team’s help along the way.

---

<div class="post-metadata">

**Author:** ![Sunil\_Chauhan](https://luna1.co/8d76cd.png) [@Sunil\_Chauhan](https://forum.asana.com/u/Sunil_Chauhan)\
**Post date:** [7 December 2025 18:26 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/7 "2025-12-07T18:26:36Z")

</div>

Facing same issue, I am new to building apps for Asana, have implemented a OAuth flow, but in my case window.opener is none.

Not sure where to post the message, I am using Asana sandbox currently.

---

<div class="post-metadata">

**Author:** ![Mikhail\_Melikhov](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/mikhail_melikhov/32/288769_2.png) [@Mikhail\_Melikhov](https://forum.asana.com/u/Mikhail_Melikhov)\
**Post date:** [10 December 2025 13:33 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/8 "2025-12-10T13:33:23Z")

</div>

I’ve mocked auth flow with a test app, and in my tests `window.opener` reliably holds a reference to the tab that initiated the redirect. From there I’m able to `postMessage` back to the opener as expected.

What I can imagine could potentially cause empty `window.opener` is some strict security setting or enterprise policy isolating tabs more aggressively or browser plugins intercepting the redirect.

---

<div class="post-metadata">

**Author:** ![Sunil\_Chauhan](https://luna1.co/8d76cd.png) [@Sunil\_Chauhan](https://forum.asana.com/u/Sunil_Chauhan)\
**Post date:** [17 December 2025 19:51 UTC](https://forum.asana.com/t/asana-oauth-flow-shows-waiting-for-authorization-if-nothing-is-happening-try-again/1068595/9 "2025-12-17T19:51:04Z")

</div>

Thanks for the response and the time taken to verify it.

I am still facing the same issue, I am using ngrok right now to locally test the app would it make the difference?

Flow I am using is as follows:

1. User goes to Project and adds the App.
2. Click on Connect button, this opens up a new tab where my site is loaded.
3. User logs in and clicks on allow(on my website)
4. Redirect to /oauth\_authorize with code challenge.
5. Callback URL is called, I am able to get the token as well. Then I return back the window.opener.postMessage(“success”, “asana url”) this is part of page that gets rendered.

at last step, it just says  
”oauth/?code=2%2F1212…d89-182dd911e7f3:12 Uncaught TypeError: Cannot read properties of null (reading ‘postMessage’)  
at window.onload (oauth/?code=2%2F1212…-182dd911e7f3:12:23)”
