PHP 클래스 PhilipBrown\Signature\Auth

파일 보기 프로젝트 열기: philipbrown/signplz 1 사용 예제들

공개 메소드들

메소드 설명
__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

비공개 메소드들

메소드 설명
addPrefix ( array $auth, $prefix ) : array
getAuthParams ( $prefix ) : array Get the auth params
getBodyParams ( $prefix ) : array Get the body params

메소드 상세

__construct() 공개 메소드

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

attempt() 공개 메소드

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