Bristol SU Support Package
|
Public Member Functions | |
getGroup () | |
getRole () | |
getUser () | |
setGroup (Group $group) | |
setRole (Role $role) | |
setUser (User $user) | |
reset () | |
Authentication manager interface.
Sets and retrieves the current user, group or role
Definition at line 15 of file Authentication.php.
BristolSU\Support\Authentication\Contracts\Authentication::getGroup | ( | ) |
Get a group
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Authentication\WebRequestAuthentication, and BristolSU\Support\Testing\Authentication\SessionAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::getRole | ( | ) |
Get a role
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::getUser | ( | ) |
Get a user
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::reset | ( | ) |
Reset any authentication persistence, to bring the authentication back to an initial clean state.
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::setGroup | ( | Group | $group | ) |
Set a group
Group | $group |
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::setRole | ( | Role | $role | ) |
Set a role
Role | $role |
Implemented in BristolSU\Support\Authentication\ApiAuthentication, BristolSU\Support\Testing\Authentication\SessionAuthentication, and BristolSU\Support\Authentication\WebRequestAuthentication.
BristolSU\Support\Authentication\Contracts\Authentication::setUser | ( | User | $user | ) |
Set a user
User | $user |
Implemented in BristolSU\Support\Testing\Authentication\SessionAuthentication.