class OAuth2Middleware (View source)

Properties

protected Model|null $token
protected TokenRepositoryInterface $tokenRepository
protected GrantTypeInterface $grantType
protected GrantTypeInterface|null $refreshTokenGrantType

Methods

Model|null
getToken()

No description

__construct(GrantTypeInterface $grantType, GrantTypeInterface|null $refreshTokenGrantType = null, TokenRepositoryInterface|null $tokenRepository = null)

No description

__invoke(callable $handler)

No description

RequestInterface
signRequest(RequestInterface $request, Model $token)

No description

Model
requestNewToken()

No description

Details

Model|null getToken()

No description

Return Value

Model|null

__construct(GrantTypeInterface $grantType, GrantTypeInterface|null $refreshTokenGrantType = null, TokenRepositoryInterface|null $tokenRepository = null)

No description

Parameters

GrantTypeInterface $grantType
GrantTypeInterface|null $refreshTokenGrantType
TokenRepositoryInterface|null $tokenRepository

Closure __invoke(callable $handler)

No description

Parameters

callable $handler

Return Value

Closure

protected RequestInterface signRequest(RequestInterface $request, Model $token)

No description

Parameters

RequestInterface $request
Model $token

Return Value

RequestInterface

protected Model requestNewToken()

No description

Return Value

Model