SAML2 500 error while getting status

Hi guys,

I haven’t seen a similar issue anywhere, so I thought I’d create a post on such matter.

I seem to be stuck on the error 500 after clicking on “Login with SAML2”. here is a line from the LibreNMS access log:

10.4.60.18 - - [01/Jul/2024:08:13:05 +0000] “GET /auth/saml2/callback?SAMLRequest=nZJRT8IwFIXf%2FRVN30e3wrLZjBGUGElQF5g%2B%2BGK6rkjj1s7ejui%2FtwNJeCLGPp6ce79z2mazr7ZBe2lBGT3F0SjEs%2Fwqm%2Fdup9fys5fgkHdomOLeamY4KGCatxKYE2wzf1gxOgpZZ40zwjQYLRdT%2FDbZ8jSUnMooTmg9TlJKUy7T6JrG462oRBLTNPGHRhi9nNh%2Bjx8H6OVSg%2BPaeSmkkyBMgjAqw5RFYxbGrxgtfCiluTtM7ZzrgBHSqMpK3ULQtSqo5X4kTEu4r0GAtw0lgjdNxcUHRsVv1hula6XfLxerjiZg92VZBMXTpsRoDiDtQL81GvpW2o20eyXk83r1jzx5NgjsUNwe7… HTTP/2.0” 500 5236 "https://librenms-dev.com/login" “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0”

it relates to:

Which is:
image (5)

Has anyone else faced such an issue? Am I right to think it may be to do with Microsoft Graph permissions and/or Azure is sending status unavailable? I don’t even get to the email and password part of the SAML2, it goes straight to this after clicking on the “Login with SAML2” button.

Thank you in advance. I will attempt with the permissions. If I find a fix, I’ll post it here for the future reference.