jakub-klapka / laravel-windows-auth by jakub-klapka

Service for IIS Windows authentication in Laravel
84
4
2
Package Data
Maintainer Username: jakub-klapka
Maintainer Contact: klapka@lumiart.cz (Jakub Klapka)
Package Create Date: 2017-05-19
Package Last Update: 2018-02-13
Language: PHP
License: GPL-3.0-or-later
Last Refreshed: 2024-04-16 15:04:13
Package Statistics
Total Downloads: 84
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 4
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

Laravel Auth Guard for IIS Windows integrated authentication

Provides implementation of integrated authentication when using Windows auth option with IIS and Active Directory.

Installation

  1. Add JakubKlapka\LaravelWindowsAuth\Providers\ServiceProvider::class to your app.php.
  2. Run php artisan vendor:publish to export config file.
  3. In config\ad_auth.php set allowed AD domains (or don't)
  4. 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.