Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.73 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.73 KB

osTicket plugin for Google Outh2 Login

Based on core plugin aouth-aouth2 aouth-aouth2 with some fixes and extra features

  • Use Helpdesk URL for redirect
  • Domain Whitelist
  • Add clients and agents buttons url on config to put the image of your preference.
  • Renamed all Google+ to Just Google

Installing

Clone this repo or download the zip file and place the contents into include/plugins/google-oauth2-plugin folder

After cloning, hydrate the repo by downloading the third-party library dependencies.

php make.php hydrate

Building Plugins

Make any necessary additions or edits to plugin and build PHAR file with the make.php command

php -dphar.readonly=0 make.php build

This will compile a PHAR file for the plugin directory. The PHAR will be named google-oauth2-plugin.phar and can be dropped into the osTicket plugins/ folder directly.

Blank Page on google redirect to system

You can fix it fast changing a little the file /api/.htaccess

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.*/api)

#RewriteRule ^(.*)$ %1/http.php/$1 [L]
RewriteRule ^(.*)$ {put your schema:domain:port}/api/http.php/$1 [L]
</IfModule>