Hello! I’ve made some good progress on my server, but I’m stuck with an odd problem I’m trying to figure out. I’m trying to add OAuth2 to my osTicket install to allow authentication to Microsoft for sending emails since they no longer allow basic authentication. Everything works until the very last part when Microsoft sends the authentication token back to me in the URL.
Hardware: VPS bought online IONOS
YunoHost version: 11.1.22
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If yes, please explain:
If your request is related to an app, specify its name and version: osticket v1.17.3~ynh1
what you are trying to achieve, in which context, what you tried and provide detailed error messages and logs if you can.
I added the file auth-oauth2.phar to the /includes/plugins directory in the osticket install location. The plugin enabled just fine, and things moved forward with me adding the Authentication tokens etc. I got all the way to where I could log into my Microsoft account, and on the redirect, I get a 404 error from Nginx
when I cat
I get the following error which matches my 404 URL:
2023/07/18 00:51:10 [error] 114980#114980: *2220 open() "/usr/share/nginx/htmlapi/http.php/auth/oauth2" failed (2: No such file or directory), client: 184.108.40.206, server: tickets.mysite.com, request: "GET /api/auth/oauth2?code=914CharacterLong HTTP/2.0", host: "tickets.mysite.com", referrer: "https://tickets.mysite.com/"
Additional context. I posted on osTicket forum and was told that NGINX needs a special setup to work as it is not directly supported.