GenericOauth2TypeController
abstract class GenericOauth2TypeController extends GenericOauthTypeController (View source)
Traits
Trait LoggerAwareTrait A trait used with LoggerAwareInterface
Properties
protected | $authenticationType | from AuthenticationTypeController | |
protected | $app | from AuthenticationTypeController | |
$apiMethods | from GenericOauthTypeController | ||
protected AbstractService | $service | ||
protected Extractor|null | $extractor | from GenericOauthTypeController | |
protected TokenInterface | $token | from GenericOauthTypeController | |
protected | $username | from GenericOauthTypeController | |
protected | from GenericOauthTypeController | ||
protected | $firstName | from GenericOauthTypeController | |
protected | $lastName | from GenericOauthTypeController | |
protected | $fullName | from GenericOauthTypeController | |
protected BindingService|null | $bindingService | from GenericOauthTypeController |
Methods
Get the logger channel expected by this LoggerAwareTrait implementation The user is expected to declare this method and return a valid channel name.
No description
Empty because we don't use the authenticate entry point.
We now check if the user allows access to email address as twitter does not provide this and users can deny access to on facebook).
No description
Whether or not we will attempt to register the user.
Whether or not we will attempt to register the user.
No description
No description
No description
No description
Details
abstract string
getLoggerChannel()
Get the logger channel expected by this LoggerAwareTrait implementation The user is expected to declare this method and return a valid channel name.
abstract string
getAuthenticationTypeIconHTML()
No description
view()
No description
__construct(AuthenticationType $type = null)
No description
AuthenticationType
getAuthenticationType()
No description
completeAuthentication(User $u)
tasks to finalize authentication, call on login events etc.
abstract string
getHandle()
No description
array
getAdditionalRequestParameters()
No description
handle_error($error = false)
No description
showError($error = null)
No description
markError($error)
No description
handle_success($message = false)
No description
showSuccess($message = null)
No description
markSuccess($message)
No description
User|null
authenticate()
Empty because we don't use the authenticate entry point.
string
buildHash(User $u)
Create a cookie hash to identify the user indefinitely.
bool
verifyHash(User $u, string $hash)
Hash authentication disabled for oauth.
TokenInterface
getToken()
No description
setToken(TokenInterface $token)
No description
protected null|User
attemptAuthentication()
We now check if the user allows access to email address as twitter does not provide this and users can deny access to on facebook).
handle_register($token = null)
No description
ExtractorInterface
getExtractor($new = false)
No description
form()
No description
AbstractService
getService()
No description
protected
isValid()
No description
int|bool
getBoundUserID($binding)
No description
abstract bool
supportsRegistration()
Whether or not we will attempt to register the user.
abstract bool
registrationGroupID()
Whether or not we will attempt to register the user.
protected
createUser()
No description
supportsEmail()
No description
supportsUniqueId()
No description
supportsVerifiedEmail()
No description
isEmailVerified()
No description
getEmail()
No description
supportsFullName()
No description
supportsFirstName()
No description
supportsLastName()
No description
getFirstName()
No description
getLastName()
No description
getFullName()
No description
supportsUsername()
No description
getUsername()
No description
int|null
bindUser(User $user, $binding)
No description
int|null
bindUserID($user_id, $binding)
No description
string|null
getBindingForUser(User|UserInfo|User|int $user)
Get the binding associated to a specific user.
getUniqueId()
No description
handle_authentication_attempt()
No description
handle_authentication_callback()
No description
handle_attach_attempt()
No description
handle_attach_callback()
No description
handle_detach_attempt()
No description
protected BindingService
getBindingService()
No description
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.