Documentation

AuthenticationProviderInterface extends ProviderInterface
in

Interface for security provider with authorization

Table of Contents

connect()  : string
Method creates conection session
createSession()  : string
Method creates session from existing token or fetched from HTTP headers
getLoginFieldName()  : string
Method returns field name for login
getSelfId()  : int
Method returns id of the session user
getSelfLogin()  : string
Method returns login of the session user
getSessionIdFieldName()  : string
Method returns field name for session_id

Methods

connect()

Method creates conection session

public connect(string $login, string $password) : string
Parameters
$login : string

login

$password : string

password

Return values
string

session id of the created session

createSession()

Method creates session from existing token or fetched from HTTP headers

public createSession(string $token) : string
Parameters
$token : string

session token

Return values
string

session token

getSelfLogin()

Method returns login of the session user

public getSelfLogin() : string
Return values
string

login of the session user

getSessionIdFieldName()

Method returns field name for session_id

public getSessionIdFieldName() : string
Return values
string

field name

Search results

    Яндекс.Метрика