ZEROSPAM\Framework\SDK\Client\Middleware\Error\AuthenticationMiddleware
Class AuthenticationMiddleware
Catch a Authentication failure and try to refresh the access_token
Synopsis
- // constants
- const MAX_TRIES = 3;
- // members
- protected IOAuthClient $client;
- // methods
- public IMiddleware setClient()
- public static array statusCode()
- public array handle()
Hierarchy
Constants
Name | Value |
---|---|
MAX_TRIES | 3 |
Members
protected
Methods
public
- handle()
- setClient() — Set the OAuth Client.
- statusCode() — Which status error code does this middleware manage.
History
-
2018-12-05T15:02:50+00:00 (commit #b8fa2d7)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Save raw data in response
-
2018-09-11T20:07:51+00:00 (commit #c644b40)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
perf(RefreshToken): Add number of tries into callbacks Used to know how many time the refreshToken has been called.
-
2018-09-11T19:29:42+00:00 (commit #11abebf)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
fix(Middleware): Remove Middleware client trait Impossible to reuse for different use cases
-
2018-07-16T14:26:38+00:00 (commit #290a97d)
Author: Antoine Aflalo (antoine.aflalo@zerospam.ca) / Commiter: Antoine Aflalo (antoine.aflalo@zerospam.ca)
feat(Response): Split Ratelimited from BaseResponse New type of response can now be easily build.