osTicket / osTicket-plugins

Core plugins for osTicket (v1.8+)
GNU General Public License v2.0
149 stars 162 forks source link

Cannot connect to 0365 Mailbox with auth-oauth2 because mailadress and upn is different #248

Closed MichaelFor closed 1 year ago

MichaelFor commented 1 year ago

Hello, we use OSTicket with following Versions: osTicket-Version | v1.17 (1d8b790) Server-Software | Apache/2.4.38 (Debian) MySQL-Version | 10.3.36 PHP-Version | 8.0.24 Oauth2 Client 0.6

Our Headquater is changing the domain from the mailbox, but the upn is now different. There will not change the upn to the same and also do not will exclude the mailbox from the default policy for the mailbox mailadress.

So in this case the access to the mailbox is not work anymore. I can successfull authenticate, grafik but this error is coming grafik

I wil ltake a look in the table os_config and hope to change the fields but it do not change anything grafik

I do not understand the code complete from the auth-oauth2.phar but i see in the function OAuth2EmailAuthBackend that there is no way to use at the moment upn different from emailadress. Please is there a way to extend this plugin for using different upn and emailadress.

br Michael

JediKev commented 1 year ago

@MichaelFor

Please post on the Forum next time. Github is a place to report issues, create feature requests, and submit pull requests. If you have questions or an error like this then it's better suited for the Forum.

With that being said, this has been mentioned on here and the Forum a few times. Currently we require the email you login as in MS match the email you are configuring in osTicket (we hope to improve this in the future). We state it very clearly here:

Here it is very important to login to the email you are trying to configure in the helpdesk.

P.S. You can change this functionality yourself:

Cheers.