I am still waiting on my Azure manager, but in the meantime I did some testing.
The token hadn't been granted in a timely fashion, so I found the following state when I went to Osticket Admin this morning:
- The OAUTH2 instance was retained in the OAUTH2 plugin configuration
- The Inbox/Outbox settings for the email for which I had requested the token were now blank
I deleted the OAUTH2 instance through the OAUTH2 plugin config interface. Then I deleted the email itself (it was not set as the default). I got a stack trace error, but the email was deleted
Looking at the DB through phpmyadmin, I found that there was still an oauth setting for the email I deleted in ost_email_account, which I don't think is intended. Do you need to add a dependency to make sure settings get cleared?
I will clear it manually for now.
Elizabeth