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?

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?

    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?

      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

      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!

      a month later

      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.

      Write a Reply...