Thanks, the proposed bypass solves my problem.
How will we know when the official patch is available ?
MS OAuth2 Error: The API version 'V2' has been depreciated.
Hello KevinTheJedi,
I'm new to Php, I am trying to unpack the plugin using the command prompt and executing this command that you posted last week php -r '$phar = new Phar("auth-oauth2.phar"); $phar->extractTo("./auth-oauth2");'. But it says the filename, directory is incorrect. Is that command posted only valid for Linux? What is the equivalent command for windows?
If I want to use an online tool to extract the .phar file to php, how can I then merge these files auth.php and oauth.php into auth-oauth2/oauth2.php?
If anyone else knows how to do this, I will appreciate a lot.
As I said, I am not an expert with php so I apologize for my little knowledge
Thank you
Fix is working for us
KevinTheJedi Could you let me know if this works in cmd or powershell, I tried bot and doesnt seem to do anything.
- Edited
Should be. You need to be within the osTicket plugin directory in the cmd/powershell and you need to replace the "php" to the full path of your PHP executable. You also likely need to change the "/" to "\" (typical windows stuff).
Cheers.
Is there a way to get notified when a patch is available for this issue?
KevinTheJedi this fix works on my end, at least to register a new email address using microsoft oauth2. I haven't test yet if it receives and sends email, but at least it allowed me to save the email.
Hi @KevinTheJedi I just came across this issue today as my token just expired. I did your fix to the plugin but it has not changed anything else. I've rebooted the system but when I try to go back and reconfigure the authentication again after the plugin change I still have the same "array ( 'code' => 'Gone', 'message' => 'The API version \'V2\' has been deprecated.', )
Email Fetching" error.
Are there other steps we need to do to make this work? Other settings to change etc? I have to re-register? uninstall. All I saw in your fix was to update the plugin.
Thanks.
KevinTheJedi yes I did the commands you posted in your solution.
Hi @KevinTheJedi thank you!. I'm guessing the changes to the function didn't get saved I was able to reconfirm the database changes and it is once again creating new tickets /replies.
I'm curious if there's a time frame for release of the updated plugin? I'm not seeing a version or release number mentioned on the https://osticket.com/download/ plugins download page so it's difficult to tell from there if an update has been released. Thanks!
How is this done on a Windows server? I dont see a oauth.php file, just a phar file. How do I modify the correct file, thank you.
ITInTheory You can always follow the plugin repo for updates.
KevinTheJedi I can confirm this got us going today, i hope it sticks. Are the endpoints truly deprecated?
Thank you for the fix. It worked for us. We use Office365 bussines accounts...
- Edited
Hello KevinTheJedi, thank you for very much for coming back to me. Our ticketing system is almost working successfully with your fix. What we are experiencing at moment is that we constantly need to go admin panels, emails on the remote mailbox page we need to click on config and press save in order to refresh the token and download new ticket. Any reason why? It was done automatically before applying this fix.
To anyone experiencing issue with extracting the phar file on windows, instead of trying with the command line, go on unphar[dot]com/extract load the phar file and save the zip file in the plugin folder on OSTicket (wwwroot; OSTicket; include; plugin). Once the zip file is in there, extract it and from there open the folder and edit the oauth2.php file and follow the guide from Kevin.
Thanks again Kevin
Sounds like you don’t have a cron job/scheduled task running to automatically poll the mailbox which should auto-refresh itself.
Cheers.