Also, I never got to the consent form in the process.....is there a way to do that via Azure portal, or is that something that should occur dynamically as a part of login?
email auth not working with 1.17.3
- Edited
OK - I'm now getting the message "Email Mismatch: Expecting Authorization for it@<domain> not mhayden@<domain>"
I blew away the app registration I did as my own account which I authorized, and created a whole new one based on an it@<domain>.
How do I remove the old authorization from osticket? Do I need to blow away the oauth phar file and remove all of hte config and start from scratch again?
I beleive that you fcan just delete the email from osTicket and it will delete everything associated with the email.
Then you can re-add the email in osTicket.
Make sure that you follow the docs?
https://docs.osticket.com/en/latest/Guides/OAuth2%20Guide.html
- Best Answerset by mhayden-dmatrix
Email Mismatch: Expecting Authorization for it@<domain> not mhayden@<domain>
This means when it took you to MS to authenticate you authenticated as the wrong account. You should login as it@ not your personal account.
Cheers.
Seems to have worked, thank you! It had to time out, though - took about 24 hours.
I see there's some discussion of a need for a cron job to pull email in from MS?
If you want automatic polling, yes. You can follow the guide here:
Cheers.
- Edited
Hello @KevinTheJedi
Got polling set up and it appears to be working.
Thank you very much for your help.
/mh
- Edited
Aargh.
It seems to not be working again.
This is what's in root crontab:
*/5 * * * * www-data /usr/bin/php /var/www/html/osticket/upload/api/cron.php
(using www-data account rather than nobody; is that ok?)
thanks
And it works again. Odd. But I'll take it.
It might be better to edit www-data
's crontab directly with: crontab -e -u www-data
Cheers.
Hmm. I'm doing it in root's crontab, but I'll consider that change.
It's working now so I'm loath to modify it.
thanks!
The user name that you use indicates what user the task is executed as.
If your webserver runs as www-data then that is the username that you should use.
Generally speaking you probably want to do it using www-data.