PHP Class Adldap\Laravel\Middleware\WindowsAuthenticate

Inheritance: use trait Adldap\Laravel\Traits\ImportsUsers
Show file Open project: adldap2/adldap2-laravel

Protected Properties

Property Type Description
$auth Illuminate\Contracts\Auth\Guard The authenticator implementation.

Public Methods

Method Description
__construct ( Illuminate\Contracts\Auth\Guard $auth ) Create a new filter instance.
createModel ( ) : Model Returns a new auth model instance.
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.
returnNextRequest ( Illuminate\Http\Request $request, Closure $next ) : mixed Returns the next request.

Protected Methods

Method Description
getWindowsAuthAttribute ( ) : string Returns the windows authentication attribute.
handleAuthenticatedUser ( User $user, Model $model = null ) : void Handle the authenticated user model.
retrieveAuthenticatedUser ( string $key, string $username ) : Illuminate\Contracts\Auth\Authenticatable | null Returns the authenticatable user instance.

Method Details

__construct() public method

Create a new filter instance.
public __construct ( Illuminate\Contracts\Auth\Guard $auth )
$auth Illuminate\Contracts\Auth\Guard

createModel() public method

Returns a new auth model instance.
public createModel ( ) : Model
return Illuminate\Database\Eloquent\Model

getWindowsAuthAttribute() protected method

Returns the windows authentication attribute.
protected getWindowsAuthAttribute ( ) : string
return string

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

handleAuthenticatedUser() protected method

This method exists to be overridden.
protected handleAuthenticatedUser ( User $user, Model $model = null ) : void
$user Adldap\Models\User
$model Illuminate\Database\Eloquent\Model
return void

retrieveAuthenticatedUser() protected method

Returns the authenticatable user instance.
protected retrieveAuthenticatedUser ( string $key, string $username ) : Illuminate\Contracts\Auth\Authenticatable | null
$key string
$username string
return Illuminate\Contracts\Auth\Authenticatable | null

returnNextRequest() public method

This method exists to be overridden.
public returnNextRequest ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

Property Details

$auth protected property

The authenticator implementation.
protected Guard,Illuminate\Contracts\Auth $auth
return Illuminate\Contracts\Auth\Guard