jakub-klapka/laravel-windows-auth
Service for IIS Windows authentication in Laravel
87
4
| Install | |
|---|---|
composer require jakub-klapka/laravel-windows-auth |
|
| Latest Version: | v1.0.0 |
| PHP: | >=7.0 |
| License: | GPL-3.0-or-later |
| Last Updated: | Feb 13, 2018 |
| Links: | GitHub · Packagist |
Maintainer: jakub-klapka
Laravel Auth Guard for IIS Windows integrated authentication
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.