Hey there,
I am facing a similar issue as some others. But couldn't find a solution so far.
All I want is setup a Microsoft365 Inbox as the main Inbox in osTicket.
I am running the newest stable release.
I have the OAuth2.0 Plugin installed and ready to go.
I have a nginx setup with all necessary url rewrites and forwards.
But every time I try to setup OAuth I get forwarded to the homepage of my installation after I finish the authentication on the microsoft page.
I am 100% sure that my configuration in the IdP Configuration page is correct. The callback endpoint is localhost:port/api/auth/oauth2
and in my nginx access log I also see that this path is called after finishing setup then forwarded to localhost:port/api/http.php/auth/oauth2?....
(as I image it is supposed to be) and then I get a HTTP 302 back and get forwarded to the homepage instead of the localhost:port/scp/emails.php?...-
page.
Any idea where the problem could be? Help would be greatly appreciated.
Segmet of my nginx Config:
location ~ ^/api/(?!http.php/)(.*) {
try_files $uri $uri/ /api/http.php/$1;
}
location ~ ^/pages/(?!index.php/)(.*) {
try_files $uri $uri/ /pages/index.php/$1;
}
location ~ ^(.*[^/]\.php)(/|$) {
include fastcgi_params;
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
Cheers