Hello all.
(Before I start, if there is any information missing from this post that might be helpful, please let me know.)
I've recently implemented the Oauth2 client plugin on my osTicket v1.18.1 installation, but it isn't working correctly.
I have the plugin setup correctly, an associated app in my 365 tenant, and a valid token in the plugin settings.
The plugin is enabled for both Agents and Users, but it only works correctly for Agents.
What's happening?
When a user tries to log in using the Oauth2 Client plugin for the first time, they're successfully logged in - they can access the user pages and log tickets. In the background, I can see entries for the user are created in the relevant database tables (ost_user, ost_user_account, ost_user_email, etc.)
When the user logs out of osTicket, they cannot log in with the OAuth2 Client again. Authentication takes place - I can see successful entries in the Microsoft Entra sign in logs - but users are returned to the client home page and are not logged in.
I've looked for error logs for my installation, but cannot find any recorded for these login attempts: docker logs
output is minimal, Apache access logs tell me nothing, and the Apache error log doesn't record anything during these logins.
As mentioned above, Agents can access the scp/
pages after logging in with the Oauth2 Client plugin without issue.
Does anyone have any pointers on where I should be looking to resolve this?
System info (all running in a single docker-compose stack on Ubuntu Server 20.04.6):
- osTicket Version: v1.18.1 (0375576)
- Web Server Software: Apache/2.4.57 (Debian)
- MySQL Version: 10.6.1 (mariadb container)
- PHP Version:
8.3.2 8.2.16
Active plugins
- Oauth2 Client, version: 0.6
- Attachments on the filesystem, version 0.3
- Help Desk Audit, version 0.1
Inactive plugins
- HTTP Passthru Authentication, version 0.2
- LDAP Authentication and Lookup, version 0.6.2
- Two Factor Authenticator, version 0.3
UPDATE, 2024-02-21 20:00 Europe/London
PHP downgraded to supported version 8.2.16, per @KevinTheJedi 's recommendation.