One issue solved, one problem remains.
1) Issue Fixed:
For the record, and so other Nginx users can find this, to fix the "file not found" issue in MS OAuth2 config when using Nginx, in the Nginx conf file for the virtual host ( for me using Ubuntu linux - /etc/nginx/sites-available/conf-for-domainname.conf ), there is a block that looks like this:
location ~ /include {
deny all;
return 403;
}
if ($request_uri ~ "^/api(/[^\?]+)") {
set $path_info $1;
}
location ~ ^/api/(?:tickets|tasks).*$ {
try_files $uri $uri/ /api/http.php?$query_string;
}
Add |auth (case matters - another forum post showed it as an upper A - |Auth - that did not work for me) after "tickets|tasks". So that one line will look like this:
location ~ ^/api/(?:tickets|tasks|auth).*$ {
2) Outstanding Issue:
When I configure OAuth2 for MS, now it pulls in email from the MS Azure account admin email even though I left that last three fields of the configuration setup as they were/default. Trying to retrace my steps, it may be possible that I had put in the MS Azure admin email in that last field when I first attempted setup so perhaps that is saved somewhere in one of the database tables. I may scan through some of the tables to look for that and if I don't find anything I'll delete the email from osTicket entirely and re-add it to see if that solves the issue.