99 if ( isset( $this->domain ) ) {
100 return $this->domain;
102 return 'invaliddomain';
131 # Override this and do something
162 if ( $prop ==
'realname' && is_callable( [ $this,
'allowRealNameChange' ] ) ) {
163 return $this->allowRealNameChange();
164 } elseif ( $prop ==
'emailaddress' && is_callable( [ $this,
'allowEmailChange' ] ) ) {
165 return $this->allowEmailChange();
166 } elseif ( $prop ==
'nickname' && is_callable( [ $this,
'allowNickChange' ] ) ) {
167 return $this->allowNickChange();
252 public function addUser( $user, $password, $email =
'', $realname =
'' ) {
292 public function initUser( &$user, $autocreate =
false ) {
293 # Override this to do something.
isLocked()
Indicate whether the user is locked.
isHidden()
Indicate whether the user is hidden.
Authentication plugin interface.
updateExternalDBGroups( $user, $addgroups, $delgroups=[])
Update user groups in the external authentication database.
autoCreate()
Return true if the wiki should create a new local account automatically when asked to login a user wh...
setDomain( $domain)
Set the domain this plugin is supposed to use when authenticating.
canCreateAccounts()
Check to see if external accounts can be created.
initUser(&$user, $autocreate=false)
When creating a user account, optionally fill in preferences and such.
allowPasswordChange()
Can users change their passwords?
modifyUITemplate(&$template, &$type)
Modify options in the login template.
authenticate( $username, $password)
Check if a username+password pair is a valid login.
updateUser(&$user)
When a user logs in, optionally fill in preferences and such.
validDomain( $domain)
Check to see if the specific domain is a valid domain.
getUserInstance(User &$user)
Get an instance of a User object.
allowPropChange( $prop='')
Allow a property change? Properties are the same as preferences and use the same keys.
addUser( $user, $password, $email='', $realname='')
Add a user to the external authentication database.
getCanonicalName( $username)
If you want to munge the case of an account name before the final check, now is your chance.
allowSetLocalPassword()
Should MediaWiki store passwords in its local database?
setPassword( $user, $password)
Set the given password in the authentication database.
updateExternalDB( $user)
Update user information in the external authentication database.
domainList()
Get a list of domains (in HTMLForm options format) used.
getDomain()
Get the user's domain.
strict()
Return true to prevent logins that don't authenticate here from being checked against the local datab...
userExists( $username)
Check whether there exists a user account with the given name.
strictUserAuth( $username)
Check if a user should authenticate locally if the global authentication fails.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping $template
this hook is for auditing only or null if authentication failed before getting that far $username