thanks mate! will give that a crack. appreciate the quick response.
OAuth2 Microsoft Not Working
@KevinTheJedi having a similar issue. After O365 auth is complete, i click 'save' and it gives this message. I've triple checked to verify imap/pop still enabled on the account and followed your guide for the O365 Aure AD application. A little stuck
KevinTheJedi Changing to pop and 993 gives an error saying : last request failed
- Edited
KevinTheJedi Whoops. Its Monday. Changing it to IMAP (still 993) gives "AUTHENTICATE failed." And this is after getting through the O365 auth process.
Then either you didn’t configure the App in Azure correctly which you can follow our documentation to ensure you did everything correctly or you need to contact MS for further assistance.
Cheers.
I changed consent to login and rehydrated, I can confirm it works as expected in this stricter setup.
Thanks for your help, mate.
- Edited
this is the error that i am receiving
/Osticket/scp/ajax.php/email/4/auth/config/mailbox/oauth2:msmail:1 Failed to load resource: the server responded with a status of 500 ()
Request URL: https://"localserver"/osTicket/scp/ajax.php/email/4/auth/config/mailbox/oauth2:msmail
Request Method: POST
Status Code: 500
Remote Address: **********:443
Referrer Policy: strict-origin-when-cross-origin
it worked for now with fresh installation of App and Plugin .
now when configuring Remote Mailbox
cannot connect to host ; error = fsockopen(): Unable to connect to outlook.office365.com:143 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) (errno = 0 )
Can confirm that this has not fixed my issue. I have been working with MS support as well, but they have not been able to see any issues with my app registration or other parts of the setup.
Thank you so much. It worked for me.
For future reference, I set up osTicket with IIS and Window Server 2019. I was struggling with this error because I wasn't too familiar with language in the php.ini file. As the solution, I removed the semicolon in the front of curl.cainfo to uncommented it.
Kind regards,
Your initial issue was that URL Rewriting is not enabled on your webserver or if it is it's not running correctly. Did you ever solve that issue?
Cheers.
Sorry, I do not mean to be obtuse. This is fairly new territory for me. I have looked at a number of other posts in these forums and I am seeing the rewrite rules that others have shown:
Testing the "HTTP api" rule, I get the following result:
So that seems to be in-line with the result of being sent to the main /portal page
I'm guessing I may need to edit the rule to point to the agent panel or admin panel, is that thought in the right direction?
Okay, so the appearance of the rules does not indicate that the web.config file is loading. Good to know, thank you.
Does this have a solution? No matter what I try, I end up with:
Sorry, but we’re having trouble signing you in.
AADSTS9002325: Proof Key for Code Exchange is required for cross-origin authorization code redemption.
I’ve never seen that one before. Follow our documentation to a "T". If you still have issues after that then contact MS for further assistance.
Cheers.
KevinTheJedi Looks like I had the URLs messed - didn't know that URL and was "randomly" trying whatever I found in the forum.
However, this still doesn't work for me - after accepting Microsoft-side popup, Osticket shows: "invalid_client".
Then you didn’t configure something right in your Email Config. Please post a screenshot and censor any sensitive info.
Cheers.