OAuth2Middleware
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
RequestInterface
signRequest(RequestInterface $request, Model $token)
No description
Model
requestNewToken()
No description
Details
Model|null
getToken()
No description
__construct(GrantTypeInterface $grantType, GrantTypeInterface|null $refreshTokenGrantType = null, TokenRepositoryInterface|null $tokenRepository = null)
No description
Closure
__invoke(callable $handler)
No description
protected RequestInterface
signRequest(RequestInterface $request, Model $token)
No description
protected Model
requestNewToken()
No description