Adding OAuth - Part 3: Managing the authorization flow Follow

Comments

3 comments

  • Avatar
    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"

  • Avatar
    Charles Nadeau

    Thanks! Typo fixed.

  • Avatar
    Ed Vinyard

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


    https://acme.zendesk.com/agent/tickets/?token=asdf


    immediately redirects them to


    https://uship.zendesk.com/agent/tickets/


    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


    /54321/assets/987654321-1a2b3c/postauth.html


    Now it returns


    https://54231.apps.zdusercontent.com/54321/assets/987654321-1a2b3c/postauth.html


    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?


     

Please sign in to leave a comment.

Powered by Zendesk