Manage authentication and authorization.
More...
|
const | NEXTPAGE_SESSION_KEY = 'AUTH_NEXTPAGE' |
|
Manage authentication and authorization.
- Author
- Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
- Copyright
- © 2015 Bryan Davis, Wikimedia Foundation and contributors.
◆ __construct()
Wikimedia\Slimapp\Auth\AuthManager::__construct |
( |
UserManager | $manager | ) |
|
◆ authenticate()
Wikimedia\Slimapp\Auth\AuthManager::authenticate |
( |
| $uname, |
|
|
| $password ) |
Attempt to authenticate a user.
- Parameters
-
string | $uname | Username |
string | $password | Password |
- Returns
- bool True if authentication is successful, false otherwise
◆ getUserData()
Wikimedia\Slimapp\Auth\AuthManager::getUserData |
( |
| ) |
|
Get the current user's information.
- Returns
- UserData User information or null if not available
◆ getUserId()
Wikimedia\Slimapp\Auth\AuthManager::getUserId |
( |
| ) |
|
Get the current user's Id.
- Returns
- int|bool Numeric user id or false if not available
◆ isAnonymous()
Wikimedia\Slimapp\Auth\AuthManager::isAnonymous |
( |
| ) |
|
Is the user anonymous?
- Returns
- bool True if the user is not authenticated, false otherwise
◆ isAuthenticated()
Wikimedia\Slimapp\Auth\AuthManager::isAuthenticated |
( |
| ) |
|
Is the user authenticated?
- Returns
- bool True if authenticated, false otherwise
◆ login()
Wikimedia\Slimapp\Auth\AuthManager::login |
( |
UserData | $user | ) |
|
Add authentication.
- Parameters
-
◆ setUser()
Wikimedia\Slimapp\Auth\AuthManager::setUser |
( |
UserData | $user | ) |
|
Store the user's information.
- Parameters
-
UserData | $user | User information |
The documentation for this class was generated from the following file: