PHP Class Chrisbjr\ApiGuard\Providers\Auth\October

Inheritance: implements Auth
Show file Open project: chrisbjr/api-guard

Protected Properties

Property Type Description
$october October\Rain\Auth\Manager

Public Methods

Method Description
__construct ( October\Rain\Auth\Manager $october )
byCredentials ( array $credentials ) : mixed Check a user's credentials.
byId ( mixed $id ) : boolean Authenticate a user via the id.
user ( ) : October\Rain\Auth\Models\User Get the currently authenticated user.

Method Details

__construct() public method

public __construct ( October\Rain\Auth\Manager $october )
$october October\Rain\Auth\Manager

byCredentials() public method

Check a user's credentials.
public byCredentials ( array $credentials ) : mixed
$credentials array
return mixed

byId() public method

Authenticate a user via the id.
public byId ( mixed $id ) : boolean
$id mixed
return boolean

user() public method

Get the currently authenticated user.
public user ( ) : October\Rain\Auth\Models\User
return October\Rain\Auth\Models\User

Property Details

$october protected property

protected Manager,October\Rain\Auth $october
return October\Rain\Auth\Manager