Not sure, but someone else had this very same issue earlier in this thread and they found out their certificate expired and needed to be renewed and updated in the email OAuth2 config.
Cheers.
Not sure, but someone else had this very same issue earlier in this thread and they found out their certificate expired and needed to be renewed and updated in the email OAuth2 config.
Cheers.
A new build of the OAuth2 plugin with full support for all types of emails is now live on the downloads page.
** IMPORTANT NOTES: **
install_path
and isphar
values back to their original values (ie. plugins/auth-oauth2.phar
and 1
respectively).Follow the below steps to ensure you are up-to-date with the Microsoft changes:
offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
Once you have a new token you should be good to go.
Just to note, a new set of releases for both 1.17.x and 1.18.x will be released soon that will contain the above core codebase patch.
If we are using OSTICKET on a hosting provider i.e Krystal UK how do we apply the changes on the backend, before doing the GUI changes?
You would need to contact your hosting provider as each provider is different. Depends on if they have CPanel, or SSH, etc.
Cheers.
But once you get access to your backend you can upload the new build of plugin to the include/plugins/
folder of your osTicket site overwriting the currently installed PHAR file. Then modify the needed core codebase files shown in the referenced pull request. You can modify the file with any editor you are comfortable with. If you aren’t comfortable doing so GitHub allows you to view and download the full files in the pull request. Go to the pull request, click Files Changed, click the three dots on the bar with the file name in it, click View File, click the three dots on the bar with Code/Blame, click Download (or press Ctrl + Shift + S
), and upload the file to the matching location in your site folder overwriting the existing file. Repeat for each file in the pull request until you have replaced all the needed files. From there you should be good to go to follow the GUI steps.
Cheers.
after Doing all steps , after authenticated the email , it return to ostickets home page , not the email configuration page
KevinTheJedi
Just to make sure I am understanding correctly
Downloading new OAuth2 plugin and installing then applying this? This requires you to apply a patch for the core codebase.
or before installing new OAuth2 plugin?
Whatever order you want. Both simply have to be done before doing changes in the UI.
Cheers.
tamer229
KevinTheJedi please help
It sounds like you configured the app registration or plugin incorrectly. Go follow the steps in the documentation to ensure you did everything correctly:
Cheers.
KevinTheJedi
everything was fine till I tried to configure the new plugin and modify the PHP files
That doesn’t really help much. Things can change, secrets can expire, etc. I would recommend going over the PHP changes you made to ensure you did them correctly. Then double check your plugin and app registration settings as shown in the docs. If you still have issues I’d recommend configuring a new app registration and reconfiguring the email in osTicket.
Cheers.
I've only had to upload the new th-oauth2.phar and then as soon as i re-apply the token it was successful and started pulling down emails again.?!
I would still make changes to the core codebase but glad it's working for you!
Cheers.
KevinTheJedi
Thank you very much for a quick fix, it works just fine
Very much appreciated
Thanks a million! Our helpdesk is back! Thanks Kevin and team, as well as community!
Ok I have tried for 3 hours now and I can't get the token to work, I keep getting this message:
Credentials: Required option not passed: "access_token"
I have the same issue as a user above where after connecting to Microsoft it just returns to the homepage for OSTicket.
Sounds like something is misconfigured within the email configurations or app registration. I would recommend creating a new app registration by following the steps in the documentation, replacing the needed information in the email configurations to match the new app, replace the Scopes with the ones I posted above, and then submit the popup. Keep in mind you should be doing so in an incognito/private window to avoid authorizing the wrong account.
Cheers.
KevinTheJedi Thanks yes I have tried all that as well as deleting and recreating the plugin and email accounts. .
So you have done ALL of the following and still have issues?
offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
.If so then I’m not sure what’s happening and you would simply need to post everything you have so we can try to help you. I simply cannot replicate this.
Cheers.