Adding OAuth - Part 3: Managing the authorization flow

Have more questions? Submit a request


  • Jordy Mont-Reynaud

    Awesome tutorial, again. Super nitpicky thing but there's a typo near the top of the page: "Anasa" instead of "Asana": "Redirect the user to the Anasa authorization page"

  • Charles Nadeau

    Thanks! Typo fixed.

  • Ed Vinyard

    The suggested final OAuth redirect no longer works.  Sending a user to

    immediately redirects them to

    discarding the OAuth token from the query string.

    A workaround that used to work, redirecting to a static asset included with an App (e.g., "postauth.html") used to work, but stopped some time in the past week or so when Zendesk switched from hosting those assets on the same domain to an entirely different one.

    For me, assertURL("postauth.html") used to return something like


    Now it returns

    Because that's not in the same domain, it doesn't work for the OAuth redirect.

    Any suggestions on how to actually get OAuth to work in my app?  

    Any suggestions on how to get it to work so Zendesk won't just break it without announcement again in a few months?


  • Vishal Mittal

    This example is not working for me. When I redirect from my server in "auth/handle_decision" using 


    , it only redirects the iframe in which my app is running (inside zendesk), thereby loading the zendesk agent ticket within the iframe of the agent ticket. 

    Any suggestions? Thanks.




  • Bryan Flynn

    Hi Vishal. DId you resolve this? The code that you reference is supposed to bring up a ticket in the agent window. Can you give more details or a screen shot of what's happening and what's expected?


Please sign in to leave a comment.

Powered by Zendesk