I would still make changes to the core codebase but glad it's working for you!
Cheers.
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.
KevinTheJedi
Yesterday we ran in this problem, after editing the plugin its working fine.
We're using exchange online usermailbox with 2FA.
Thanks.
jerer hi, i modified the url and create the file j.son, but noew i have this error in authentication cURL error 60: SSL certificate problem: self-signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) Can you help me?
... simply scroll up and read:
… or read here:
Cheers.
KevinTheJedi
Hello Kevin,
I followed all the steps in your "https://forum.osticket.com/d/105728-ms-oauth2-error-the-api-version-v2-has-been-depreciated/242" but every time I am being redirected to the support ticket main page once I am providing the email credentials, not getting the popup to consent and hence no token renewal and no success page.
Can you provide some help please.
everything was working fine till Saturday and since then its down.
Then you are not doing something right. Please follow the guide here step-by-step:
Once you get to the Outlook Scopes field replace the default value with this: offline_access https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send
Then when you submit the popup and go to microsoft, you login as the email you are configuring in osTicket. Then you consent to the permissions and you should be good. If you have to request consent from an admin this will not work. Your admin will need to consent on behalf of the org in the enterprise applications or allow users to consent themselves.
Cheers.
I recreated the whole email but again same thing. after updating the OAuth2 plugin, I am not getting "resource detail" and "email address attribute" is there something i am missing
KevinTheJedi
Thankyou very much the issue was resolved as i was not putting the correct info.
Cheers
Thank very much for instructions provided above at: https://forum.osticket.com/d/105728-ms-oauth2-error-the-api-version-v2-has-been-depreciated/242
They worked perfectly for addressing this issue.
KevinTheJedi I just apply your instruction to my osticket instance and it's now work fine. Thanks a lot!
I have tried this for the error
array ( 'code' => 'Gone', 'message' => 'The API version \'V2\' has been deprecated.', )
Update the callback() method, run this caommand inside plugin directory "php -r '$phar = new Phar("auth-oauth2.phar"); $phar->extractTo("./auth-oauth2");" , update the table ost_plugin install_path to plugins/auth-oauth2 and ispher 0.
Still the error persistent. osTicket (v1.18)
Anything else to try please ?
No longer need to do that. Simply revert the changes you made, download/install the latest plugin, and follow these instructions (if updating an existing email in osTicket follow instructions in the Attention notice at the top).
Cheers.
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.
when ?
Read the last part:
We do not have a set release date but it’s coming soon.
Cheers.