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

    fturco

    From your screenshots it appears you already have it unpacked?

    Cheers.

    swmitchell43

    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.

      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.

          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...