PHP Class PhilipBrown\Signature\Auth

Datei anzeigen Open project: philipbrown/signplz Class Usage Examples

Public Methods

Method Description
__construct ( string $method, string $uri, array $params, array $guards ) : void Create a new Auth instance
attempt ( Token $token, string $prefix = Request::PREFIX ) : boolean Attempt to authenticate a request

Private Methods

Method Description
addPrefix ( array $auth, $prefix ) : array
getAuthParams ( $prefix ) : array Get the auth params
getBodyParams ( $prefix ) : array Get the body params

Method Details

__construct() public method

Create a new Auth instance
public __construct ( string $method, string $uri, array $params, array $guards ) : void
$method string
$uri string
$params array
$guards array
return void

attempt() public method

Attempt to authenticate a request
public attempt ( Token $token, string $prefix = Request::PREFIX ) : boolean
$token Token
$prefix string
return boolean