I just upgraded my OSTicket install as Google disabled basic authentication for imap. I have installed the OAuth2 plugin and followed the guide. The issue I am encountering is my OSTicket server is only accessible internally so the callback endpoint isn't a valid URL. I only want to use the OAuth to retrieve emails sent to the helpdesk email address as we use local authentication for our 3 agents.
I am on OSticket version 1.17.6 and the plugin version is 0.6
Google OAuth2 Help
You can use a local URL but it must be HTTPS; otherwise you must use localhost. This is a restriction set by Google.
Cheers.
I would then need to change my helpdesk URL from http://currentname.domain.local to http://localhost.domain.local?
Ok I have https url working fine now but I am getting a page not found after I click Allow in the Google Application permission dialog box when saving changes in the idp config section for remote mailbox. I also can not manually browse to the callback endpoint but I do have the plugin installed?
- Best Answerset by KevinTheJedi
That means you don't have URL Rewriting enabled on your webserver. You need to install URL Rewriting module for Apache (or IIS). If using Apache you may also need to update your site config file to add the following option to your site specific block (eg. <Directory /var/www/html/example>...</Directory>
):
<Directory /var/www/html/example>
AllowOverride All
</Directory>
Cheers.
That did it! Thanks. Close away