I have successfully integrated LibreNMS with Windows Azure SSO, and initially everything works fine — I’m able to log in using my SSO user without any issues.
However, after some time (a few hours or days), the SSO authentication stops working and produces errors.
To temporarily fix it, I have to rerun the following commands:
After doing this, SSO login works again — but only temporarily.
Error from librenms.log:
[2026-04-17T14:50:21][ERROR] Wrong value for auth.socialite.configs.microsoft.listener set, class: ‘\SocialiteProviders\Microsoft\MicrosoftExtendSocialite’ does not exist!
[2026-04-17T14:50:21][CRITICAL] Exception: InvalidArgumentException Driver [microsoft] not supported. @ /opt/librenms/vendor/laravel/framework/src/Illuminate/Support/Manager.php:104
Question:
Has anyone experienced this issue before?
It seems like the Microsoft Socialite provider is somehow missing or not being loaded after some time. Could this be related to:
Composer dependencies being removed/reset?
Cache/config issues?
Cron jobs or updates overwriting files?
Any advice or permanent fix would be greatly appreciated.
When you add the provider, it adds it to composer.json and composer.lock. If you reset those files and run composer it will remove the plugin and stop working.
Basically, add the provider as you do above then don’t touch composer.* files.
Those two commands are absolutely fine to run afaik and don’t clear out the composer files.
Usually it’s a git checkout, ./scripts/github-remove or similar that would do that. LibreNMS itself won’t reset the files automatically, it will be something you’re running or doing that’s resetting them.
FORCE=1 php composer.phar require socialiteproviders/microsoft This step is your problem, the docs tell you to run lnms plugin:add socialiteproviders/microsoft.
honestly I asked 3 AI to help me install it, because previously i got some error.
this is the error when i run the command:
SRV:~$ lnms plugin:add socialiteproviders/microsoft
Could not open input file: require
SRV:~$ composer require socialiteproviders/github
-bash: composer: command not found
SRV:~$ lnms plugin:add socialiteproviders/microsoft
Could not open input file: require
SRV:~$ php composer.phar require socialiteproviders/github
./composer.json has been updated
Running composer update socialiteproviders/github
LibreNMS\ComposerHelper::preUpdate
Running composer update is not advisable. Please run composer install to update instead.
If know what you are doing and want to write a new composer.lock file set FORCE=1.
If you don’t know what to do, run: composer install
SRV:~$ lnms plugin:add socialiteproviders/microsoft
Could not open input file: require
SRV:~$
~$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS | 26.4.0 (2026-04-20T13:50:04+08:00)
DB Schema | 2026_04_02_141445_add_ssl_certificate_update_permission (383)
PHP | 8.4.16
Python | 3.13.5
Database | MariaDB 11.8.6-MariaDB-0+deb13u1 from Debian
RRDTool | 1.7.2
SNMP | 5.9.4.pre2
===========================================
[OK] Composer Version: 2.9.7
[OK] Dependencies up-to-date.
[OK] Database Connected
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK] Database and column collations are correct
[OK] Database schema correct
[OK] MySQL and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
composer.json
composer.lock
librenms:~$ ./daily.sh
Clearing caches OK
Fetching new release information OK
Updating to latest release OK
Updating Composer packages OK
Updated from 26.4.0 to 26.4.1 OK
Updating SQL-Schema OK
Cleaning up DB OK
Caching PeeringDB data OK
librenms:~$
librenms:~$ lnms plugin:add socialiteproviders/microsoft
./composer.json has been updated
Running composer update socialiteproviders/microsoft
> LibreNMS\ComposerHelper::preUpdate
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking socialiteproviders/microsoft (4.9.1)
Writing lock file
Installing dependencies from lock file
Package operations: 1 install, 0 updates, 0 removals
- Installing socialiteproviders/microsoft (4.9.1): Extracting archive
Package influxdb/influxdb-php is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
INFO Discovering packages.
laravel-notification-channels/webpush ........................................................................................... DONE
laravel/socialite ............................................................................................................... DONE
laravel/tinker .................................................................................................................. DONE
laravel/ui ...................................................................................................................... DONE
librenms/laravel-vue-i18n-generator ............................................................................................. DONE
mews/purifier ................................................................................................................... DONE
nesbot/carbon ................................................................................................................... DONE
nunomaduro/termwind ............................................................................................................. DONE
spatie/laravel-ignition ......................................................................................................... DONE
spatie/laravel-permission ....................................................................................................... DONE
tightenco/ziggy ................................................................................................................. DONE
70 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Illuminate\Foundation\ComposerScripts::postUpdate
No security vulnerability advisories found.
Using version ^4.9 for socialiteproviders/microsoft
The "php-http/discovery" plugin was not loaded as it is not listed in allow-plugins and is not required by the root package anymore.
Using version ^4.9 for socialiteproviders/microsoft
composer.plugins.json has been created
librenms:~$
librenms:~$ lnms config:set auth.socialite.configs.microsoft.listener "\SocialiteProviders\Microsoft\MicrosoftExtendSocialite"
librenms:~$ lnms config:set auth.socialite.configs.microsoft.enable true
librenms:~$ php artisan config:clear
INFO Configuration cache cleared successfully.
librenms:~$ php artisan cache:clear
INFO Application cache cleared successfully.
librenms:~$
Hopefully it will permanently enabling the Azure SSO.