Pionia Core

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
static

addAuthenticationBackend()

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
static

getAuthentications()

Get the authentications in chain

public getAuthentications() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results