I’ve checked in entra and it say my user has succesfully logged in on m365. So from my understanding it must be something on way back from MS to my Zammad installation
i’m really stuck here and would be grateful for any tips
Yes, I agree. It’s still an almost fresh installation followed by setup guideline.
Do you have a specific configuration in mind that would be helpful to share?
Modifications I’ve done:
ldap integration for the users,
adapted the apache config to use https
provide a ssl cert to apache2.
changed the Zammad http-mode to https.
For M365 channel I’ve done the app config in alignment of M365 (Client-Id, client-secret, uuid-name and callback-url.
If I try to add an account (exclusive m365 account for zammad) I get the error 500 after entering the password. If I look to the logon-log in m365 it says logon successfull.
The Online Dokumentation pointed on “Wrong or Expired Client Secret” but that has been checked multiple times now and also renewed. And even as M365 says logon successfull I couldn’t belive in that reason.
Here whats in production log (a bit filltered and anonymized)
I, [2025-01-06T15:03:56.007341#521-184080] INFO – : Started GET “/api/v1/external_credentials/microsoft365/link_account” for XXX.XXX.XXX.XXX at 2025-01-06 15:03:56 +0100
I, [2025-01-06T15:03:56.014968#521-184080] INFO – : Processing by ExternalCredentialsController#link_account as HTML
I, [2025-01-06T15:03:56.015032#521-184080] INFO – : Parameters: {“provider”=>“microsoft365”}
I, [2025-01-06T15:03:56.028984#521-184080] INFO – : Redirected to Sign in to your account
I, [2025-01-06T15:03:56.030638#521-184080] INFO – : Completed 302 Found in 15ms (ActiveRecord: 3.7ms | Allocations: 5439)
I, [2025-01-06T15:04:04.599020#525-183640] INFO – : ProcessScheduledJobs running…
[…]
I, [2025-01-06T15:04:35.511021#521-184220] INFO – : Started GET “/api/v1/external_credentials/microsoft365/callback?code=[FILTERED]&session_state=b396e8d2-04f6-4384-8c42-9236574dbd7f” for XXX.XXX.XXX.XXX at 2025-01-06 15:04:35 +0100
I, [2025-01-06T15:04:35.519915#521-184220] INFO – : Processing by ExternalCredentialsController#callback as HTML
I, [2025-01-06T15:04:35.519980#521-184220] INFO – : Parameters: {“code”=>“[FILTERED]”, “session_state”=>“b396e8d2-04f6-4384-8c42-9236574dbd7f”, “provider”=>“microsoft365”}
E, [2025-01-06T15:04:35.536512#521-184220] ERROR – : Request failed! (code: 0)
E, [2025-01-06T15:04:35.536843#521-184220] ERROR – : Request failed! (code: 0) (RuntimeError)
I, [2025-01-06T15:04:35.555377#521-184220] INFO – : Completed 500 Internal Server Error in 35ms (Views: 1.4ms | ActiveRecord: 5.1ms | Allocations: 6913)
Any more tipps?
ChatGPT suggested to check the m365 settings via rails with Setting.get(‘microsoft365’) but the result is nil. Should this work and return the values I see in web GUI?