MS OAuth2 Error: The API version 'V2' has been depreciated.
This is to confirmed that this fixed is working on my end.
Thank you @KevinTheJedi
Just to confirm that the posted fix works for me, once I remembered the 1 to 0 in the DB table to tell it to not use phar!
The fix worked for us as well.... until this morning. Now we are getting an invalid_client error.
Ill look around. Been working fine for years and just stopped this morning. Sus
You are a wise jedi... cert expired.
Confirming that the posted fix worked for us as well.
Thanks!
Thanks @KevinTheJedi, I managed to restore the service with the solution posted in this thread.
Thanks, the proposed bypass solves my problem.
How will we know when the official patch is available ?
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.