jakub-klapka / laravel-windows-auth
Service for IIS Windows authentication in Laravel
Package info
github.com/jakub-klapka/laravel-windows-auth
pkg:composer/jakub-klapka/laravel-windows-auth
v1.0.0
2017-05-19 09:29 UTC
Requires
- php: >=7.0
- laravel/laravel: >=5.3
Requires (Dev)
- php: >=7.1
- phpunit/phpunit: >=6.0
This package is auto-updated.
Last update: 2026-02-28 21:13:04 UTC
README
Provides implementation of integrated authentication when using Windows auth option with IIS and Active Directory.
Installation
- Add
JakubKlapka\LaravelWindowsAuth\Providers\ServiceProvider::classto your app.php. - Run
php artisan vendor:publishto export config file. - In config\ad_auth.php set allowed AD domains (or don't)
- In config\auth.php set guard to
windows, for example:
'defaults' => [ 'guard' => 'windows', ], 'guards' => [ 'windows' => [ 'driver' => 'windows', 'provider' => 'users' ]
Don't forget to implement \Illuminate\Contracts\Auth\Authenticatable in your User model, if you are not using default Eloquent one.