PHP Class spec\GenTux\Jwt\Http\JwtMiddlewareSpec

Inheritance: extends PhpSpec\ObjectBehavior
Exibir arquivo Open project: generationtux/jwt-artisan

Public Methods

Method Description
it_throws_an_exception_if_no_token_is_provided_with_the_request ( Illuminate\Http\Request $request )
it_throws_an_exception_if_the_token_is_invalid ( JwtToken $token, Illuminate\Http\Request $request )
it_validates_the_token_and_passes_onto_the_next_middleware ( JwtToken $token, Illuminate\Http\Request $request )
it_validates_the_token_with_custom_header_key_and_passes_onto_the_next_middleware ( JwtToken $token, Illuminate\Http\Request $request )
let ( JwtToken $token )

Method Details

it_throws_an_exception_if_no_token_is_provided_with_the_request() public method

public it_throws_an_exception_if_no_token_is_provided_with_the_request ( Illuminate\Http\Request $request )
$request Illuminate\Http\Request

it_throws_an_exception_if_the_token_is_invalid() public method

public it_throws_an_exception_if_the_token_is_invalid ( JwtToken $token, Illuminate\Http\Request $request )
$token GenTux\Jwt\JwtToken
$request Illuminate\Http\Request

it_validates_the_token_and_passes_onto_the_next_middleware() public method

public it_validates_the_token_and_passes_onto_the_next_middleware ( JwtToken $token, Illuminate\Http\Request $request )
$token GenTux\Jwt\JwtToken
$request Illuminate\Http\Request

it_validates_the_token_with_custom_header_key_and_passes_onto_the_next_middleware() public method

public it_validates_the_token_with_custom_header_key_and_passes_onto_the_next_middleware ( JwtToken $token, Illuminate\Http\Request $request )
$token GenTux\Jwt\JwtToken
$request Illuminate\Http\Request

let() public method

public let ( JwtToken $token )
$token GenTux\Jwt\JwtToken