SAML2 Configuration with Azure Errors

Hello,

I’m currently trying to configure my librenms instance with SAML 2 via Azure, following the documentation here Oauth/SAML support - LibreNMS Docs. I am on version 25.5.0.

However, when I navigate to the page, I get the below error:

Navigating to the logs shows this error message:
[2025-06-02T16:56:02][ERROR] Array to string conversion {“exception”:“[object] (ErrorException(code: 0): Array
to string conversion at /opt/librenms/vendor/laravel/socialite/src/Two/AbstractProvider.php:398)”}

I’ve gone to that file but I’m not sure what the issue is. This is what’s on line 398:
$this->scopes = array_values(array_unique(array_merge($this->scopes, (array) $scopes)));

I’m also including the configuration (Redacted) to see if anything obvious stands out there:

{
“redirect”: true,
“register”: true,
“default_role”: “global-read”,
“claims”: {
“RETURN_FROM_CLAIM”: {
“roles”: [
“admin”
]
},
“OTHER_RETURN_FROM_CLAIM”: {
“roles”: [
“global-read”,
“cleaner”
]
}
},
“configs”: {
“microsoft”: {
“client_id”: “xxxClientIDxxx”,
“client_secret”: “xxxClientSecretxxx”,
“tenant”: “xxxDirectoryIDxxx”,
“listener”: “\SocialiteProviders\Microsoft\MicrosoftExtendSocialite”
},
“saml2”: {
“acs”: “https://login.microsoftonline.com/xxxDirectoryIDxxx/saml2”,
“entityid”: “https://sts.windows.net/xxxDirectoryIDxxx/”,
“certificate”: “xxxCERTIFICATExxx”,
“listener”: “\SocialiteProviders\Saml2\Saml2ExtendSocialite”,
“metadata”: “https://login.microsoftonline.com/xxxDirectoryIDxxx/federationmetadata/saml20/federationmetadata.xml?appid=xxxClientIDxxx”,
“sp_default_binding_method”: “urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST”
}
},
“scopes”: [
[
“User_AD_Group”,
“Admin_AD_Group”
]
]
}

Any help would be greatly appreciated.