AuthenticationTypeControllerInterface
interface AuthenticationTypeControllerInterface (View source)
Methods
Details
User|null
authenticate()
Method used to verify the user and log them in.
Returning user will cause finishAuthentication to run, otherwise it's expected that the subclass manage completion.
deauthenticate(User $u)
Method used to clean up.
This method must be defined, if it isn't needed, leave it blank.
bool
isAuthenticated(User $u)
Test user authentication status.
string
buildHash(User $u)
Create a cookie hash to identify the user indefinitely.
bool
verifyHash(User $u, string $hash)
Verify cookie hash to identify user.
completeAuthentication(User $u)
tasks to finalize authentication, call on login events etc.