AuthenticationChainContract
in
Table of Contents
Methods
- addAfter() : static
- Add an authentication after another
- addAuthenticationBackend() : mixed
- Adds an authentication backend to the chain
- addBefore() : static
- Add an authentication backend before another
- getAuthentications() : array<string|int, mixed>
- Get the authentications in chain
- handle() : mixed
- Run the authentication chain on a request
- next() : mixed
- Run the next authentication backend in the chain.
Methods
addAfter()
Add an authentication after another
public
addAfter(string $authToPoint, string $authToAdd) : static
Parameters
- $authToPoint : string
- $authToAdd : string
Return values
staticaddAuthenticationBackend()
Adds an authentication backend to the chain
public
addAuthenticationBackend(string $authenticationContract) : mixed
Parameters
- $authenticationContract : string
addBefore()
Add an authentication backend before another
public
addBefore(string $authToPoint, string $authToAdd) : static
Parameters
- $authToPoint : string
- $authToAdd : string
Return values
staticgetAuthentications()
Get the authentications in chain
public
getAuthentications() : array<string|int, mixed>
Return values
array<string|int, mixed>handle()
Run the authentication chain on a request
public
handle(Request $request) : mixed
Parameters
- $request : Request
next()
Run the next authentication backend in the chain.
public
next(Request $request, AuthenticationContract $next) : mixed
Parameters
- $request : Request
- $next : AuthenticationContract