\Ceo\Core\AuthAuthManager

AuthManager manages central email/password authentication for web interaction. API authentication is state-less and handled by the ApiKeyListener.

Summary

Methods
Properties
Constants
check()
isLoggedIn()
getUser()
getUserId()
remove()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
setIdentity()
No private properties found
N/A

Methods

check()

check(array  $creds, boolean  $checkOnly = false) : boolean

Check credentials as defined as an array containing: * email * password

Parameters

array $creds
boolean $checkOnly

If true don't set identity

Returns

boolean

isLoggedIn()

isLoggedIn() : boolean

Determine if user is logged in

Returns

boolean

getUser()

getUser() : \Ceo\Core\Models\User

Fetch user for associated session

Returns

\Ceo\Core\Models\User

user object

getUserId()

getUserId() : string

Returns the id of the user

Returns

string

remove()

remove() 

Reset the session and private data bag.

Effectively logs the user out.

setIdentity()

setIdentity(\Ceo\Core\Models\User  $user) 

Pushes user identity into a private session data bag.

The session data will only be available to this class and no other.

Parameters

\Ceo\Core\Models\User $user