99 if ( isset( $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 =
'' ) {
293 # Override this to do something.
updateExternalDB($user)
Update user information in the external authentication database.
isHidden()
Indicate whether the user is hidden.
canCreateAccounts()
Check to see if external accounts can be created.
strict()
Return true to prevent logins that don't authenticate here from being checked against the local datab...
allowSetLocalPassword()
Should MediaWiki store passwords in its local database?
allowPropChange($prop= '')
Allow a property change? Properties are the same as preferences and use the same keys.
updateUser(&$user)
When a user logs in, optionally fill in preferences and such.
allowPasswordChange()
Can users change their passwords?
userExists($username)
Check whether there exists a user account with the given name.
initUser(&$user, $autocreate=false)
When creating a user account, optionally fill in preferences and such.
getCanonicalName($username)
If you want to munge the case of an account name before the final check, now is your chance...
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
autoCreate()
Return true if the wiki should create a new local account automatically when asked to login a user wh...
setPassword($user, $password)
Set the given password in the authentication database.
addUser($user, $password, $email= '', $realname= '')
Add a user to the external authentication database.
strictUserAuth($username)
Check if a user should authenticate locally if the global authentication fails.
modifyUITemplate(&$template, &$type)
Modify options in the login template.
updateExternalDBGroups($user, $addgroups, $delgroups=[])
Update user groups in the external authentication database.
validDomain($domain)
Check to see if the specific domain is a valid domain.
getUserInstance(User &$user)
Get an instance of a User object.
please add to it if you re going to add events to the MediaWiki code where normally authentication against an external auth plugin would be creating a local account $user
domainList()
Get a list of domains (in HTMLForm options format) used.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
this hook is for auditing only or null if authentication failed before getting that far $username
isLocked()
Indicate whether the user is locked.
getDomain()
Get the user's domain.
setDomain($domain)
Set the domain this plugin is supposed to use when authenticating.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image and a DIV can begin in one section and end in another Make sure your code can handle that case gracefully See the EditSectionClearerLink extension for an example zero but section is usually empty its values are the globals values before the output is cached one of or reset my talk my contributions etc etc otherwise the built in rate limiting checks are if enabled allows for interception of redirect as a string mapping parameter names to values & $type
authenticate($username, $password)
Check if a username+password pair is a valid login.