I have osTicket 1.17.2 installed and Azure is working for authentication & email fetching. When an agent clicks on a link to a ticket in an email generated by osTicket, if they are not logged in, they are prompted to authenticate. After successfully logging in using Azure (oauth), they are redirected to the tickets listing page (/scp/index.php) and not directly to the ticket. If the agent was already successfully logged in prior to clicking on the ticket link in the email, the link works just fine.

Is there a way after the user authenticates in Azure, to be redirected to the URL they initially accessed? This way when clicking on a direct link to a ticket in an email, after authenticating in Azure (if not logged in), the agent is taken to the direct link to the ticket.

    Hi

    Thank you for your quick response. I've tried the code changes and unfortunately, this didn't resolve the issue.

    The problem only exists for Azure authentication. Also have open LDAP authentication enabled as an alternative method and it works fine. After authenticating using a direct link to a ticket, the agent is directed to that ticket. Using Azure authentication, the user is directed to the tickets listing /scp/index.php instead of that ticket.

      webdeveloper

      I think it's because they get directed away from the helpdesk. Although the URL should be saved in the session. So I'll have to do some testing to see.

      Cheers.

      We are having the same issue.
      Login with AAD, and click a ticket URL in email and our browser will go back to the MS reauthentication screen and finally back to the web-portal.

      Logging in via LDAP auth and the links work fine.

      15 days later
      Write a Reply...