Based on core plugin aouth-aouth2 with some fixes and extra features
- Add clients and agents buttons url on config to put the image of your preference.
- Renamed all Google+ to Just Google
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
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.
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>