I get the same error message "cannot select INBOX, is this a valid transport?" when configuring OAUTH2. Hostname : outlook.office365.com, Port: 993.
Basic Authentication Retirement for legacy protocols in Exchange Online
I am running v1.12 on a standalone VM with mysql, php etc. How do I install this OATH2 plugin?
I figured it out. It was the Microsoft Exchange licence that caused this issue.
Exchange Online Kiosk is not working, but Exchange Online Plan 1 does work correctly.
you don't. This is a requirement of 1.17.x and is currently in RC3
KevinTheJedi
outlook.offie365.com
port 993
protocol imap
authentication Oath2 - Microsoft
I have also tried with pop and 995 but I get a red exclamation mark at the top but no text.
The only thing I can find on this error is that you should try port 995 instead. Try reaching out to your host for further assistance.
Cheers.
Does the Oauth2 token renew itself or do I need to reconfigure Oauth2 everyday ?
Yesterday I activated Microsoft Oauth2, everything worked great, we received tickets, smtp worked. But today, few minutes ago, inbound tickets suddenly were stuck in the mailbox, so we had to re-confirm mailbox configuration to make it work again.
nerdyviking88
I tried installing 1.17rc3 yesterday and ran into some issues but I will try again. Is the oauth built into that version, or just support for the plugin?
Thanks!
KevinTheJedi Thank you for the reply but according to https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353 port 993 is the correct port for IMap. As I stated previously I did try pop (with 995) and it just gives me a red exclamation mark with no error message. If I change Imap to 995 I get an error message stating it is unable to connect to host which is to be expected.
We have testing instance on local IP address. And when we try configure AOuth2 Microsoft, we got error from apache 404 with url: Callback Endpoint, code, state, session_state.
Anyone know, how to finish connection to Azure App?
You need to enable URL Rewriting on your webserver. We do not have documentation on this you will have to look at your webserver documentation on how to accomplish this.
Cheers.
I was just telling you what I saw when I googled that error. You will need to reach out to your mail provider for further assistance.
Cheers.
So, Access Tokens will be renewed if the Refresh Token is valid. And these get updated every time they are used. So if it expired then you are probably in Test Mode in which Access Tokens fully expire after 7 days.
Cheers.
I know it’s not supported but I nearly have this running on nginx (1.23.1, PHP 8.0.22).
The only issue that I have is after the admin consent to the Microsoft app, I get redirected back to the OSTicket user login page, but nothing happens.
I can see the token info in the address bar.
Does anyone have any ideas? Or do I have to uninstall nginx and move to Apache on October 1st?
My guess is that if this last redirect was to work, the OAuth2 would as well.
Thanks for your help and thanks to the team for developing the plugin.
You don’t have url rewriting enabled. Please enable this, restart NGINX, and retest.
Cheers.
I thought I did. This is my config file:
` location / {
index index.php;
try_files $uri $uri/ /index.php$is_args$args;
}
set $path_info "";
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;
}
if ($request_uri ~ "^/scp/.*\.php(/[^\?]+)") {
set $path_info $1;
}
location ~ ^/scp/ajax.php/(.*)$ {
try_files $uri $uri/ /scp/ajax.php;
}
location ~ .php$ {
fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param PATH_INFO $path_info;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_read_timeout 300;
}
`
Hmm maybe it's NGINX specific config issue then. If you find a fix for the issue let us know! We'd be interested to see what it could be.
Cheers.
Will do, thanks for looking!
Sorry to jump in here ( we're on v1.17-rc4 ) We tried adding to our apache config /etc/httpd/conf.d :
RewriteEngine on
and after authenticating successfully at office we are returned to our local server with a 404 error to : https://server.com/api/auth/oauth2?code=....
Where is the documentation on this again ?
Thanks
G