SsoAuthMethod

package sso\lib\dao

 Methods

Try to authenticate a user

auth(string $user, string $pass) : \sso\AuthUser

Parameters

$user

string

user name

$pass

string

user password

Returns

\sso\AuthUserThe user object, identified of not (isLogged())

Return group element type

getGroupType() 
Static
see
inherited_from \sso\SsoGroupable::getGroupType()

Retrieve the local auth method

getLocal() : \sso\SsoAuthMethod
Static

Returns

\sso\SsoAuthMethod

Field name that contain name of group element

getNameField() 
see
inherited_from \sso\SsoGroupable::getNameField()

Retrieve options of auth type

getOptions(array<mixed,mixed> $value = NULL) : array<mixed,\salt\Field>

Parameters

$value

array<mixed,mixed>

current values as key => value

Returns

array<mixed,\salt\Field>Options list

{@inheritDoc}

initAfterCreateTable(\salt\DBHelper $db) 
see

Parameters

$db

\salt\DBHelper

database where table is created

Search a user

searchUser(array<mixed,string>|string $search) : \sso\AuthUser

Parameters

$search

array<mixed,string>string

User ID or fields to search as key => value

Returns

\sso\AuthUserThe user object

 Properties

 

$create

$create : boolean

Default

magic
property
 

$default

$default : boolean

Default

magic
property
 

$id

$id : string

Default

magic
property
 

$name

$name : string

Default

magic
property
 

$options

$options : string

Default

magic
property
 

$type

$type : integer

Default

magic
property
 

List of type classes

$TYPES : array<mixed,\sso\SsoAuthMethodInterface>

Default

array()
Static

 Constants

 

Class type

TYPE_CLASS = 3 
 

Database type

TYPE_DB = 2 
 

LDAP type

TYPE_LDAP = 1 
 

Local type

TYPE_LOCAL = 0