Class BeAuthComponent
User/group/authorization component: - login, session start - user/group creation/handling
- Object
- BeAuthComponent
Direct known subclasses
BeAuthFacebookComponent
,
BeAuthGoogleComponent
,
BeAuthTwitterComponent
Located at controllers/components/be_auth.php
Methods summary
public
|
|
public
boolean
|
#
startSession( string $sessionId = null )
Start session if it isn't already started else check if it's valid |
protected
|
#
initExternalServices( )
Init external auth services components, reading 'extAuthParams' config Create components without components startup |
public
|
|
protected
|
|
protected
|
|
public
boolean
|
#
externalLogin( string $extAuthType, string $extAuthOptions = array(), array $extAuthOptions,… )
User authentication on external service (OpenID. LDAP, Shibbolet...) |
public
boolean
|
|
public
number
|
#
responseLogin( string $userid, string $password, array $policy = null, array $auth_group_name = array() )
Http code response for login attempt |
protected
boolean
|
#
loginPolicy( string $userid, array $u, array $policy = null, array $auth_group_name = array() )
Check policy using $policy array or config if null |
public
boolean
|
#
changePassword( string $userid, string $password )
Change password for user and set num_login_err to 0 |
public
boolean
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
integer
|
|
public
boolean
|
|
protected
|
#
userGroupModel( array & $userData, array $groups )
Fill group data for user (set group data in $userData) |
public
boolean
|
|
public
boolean
|
|
public
integer
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
public
mixed
|
|
public
|
|
public
|
Constants summary
string |
SESSION_INFO_KEY
|
#
"BESession"
|
Properties summary
public
|
$controller
|
#
null
|
public
array
|
$extAuthComponents
|
#
array()
|
public
|
$Session
|
#
null
|
public
|
$user
|
#
null
|
public
boolean
|
$isValid
|
#
true
|
public
boolean
|
$changePasswd
|
#
false
|
public
string
|
$sessionKey
|
#
"BEAuthUser"
|
public
string
|
$authResult
|
#
'OK'
|
public
string
|
$userAuth
|
#
'bedita'
|