wiki.techinc.nl/includes/Hook
Tim Starling 5bac886e6e TempUser CentralAuth integration
Add a hook "TempUserCreatedRedirect" which allows an extension to modify
the post-save redirect after a temporary user is created. CentralAuth
will handle this hook in order to redirect to loginwiki. Loginwiki will
redirect back to the page being saved.

In LoginHelper::showReturnToPage add an "anchor" parameter to specify
the URL fragment to redirect to. This is intended for section editing
with a redirect via loginwiki.

In AuthManager::autoCreateUser(), just allow any valid username, don't
require it to be creatable. Previously a non-creatable username was
allowed only with $source=AUTOCREATE_SOURCE_TEMP, but CentralAuth
depends on user autocreation from the session during refreshCookies. The
session is already validated at this point, so it's not like a user can
exploit this to create arbitrary names.

Change-Id: I623330dbf5d0573c93ae22f962618d6ddbd126d9
2022-05-10 09:06:05 +10:00
..
AfterBuildFeedLinksHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
AfterFinalPageOutputHook.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
AlternateEditHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
AlternateEditPreviewHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ApiBeforeMainHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ArticleMergeCompleteHook.php Remove some more comments that literally repeat the code 2021-12-09 19:01:36 +01:00
ArticleUpdateBeforeRedirectHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
BadImageHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
BeforeInitializeHook.php Remove documentation that literally repeats the code 2020-10-27 19:20:26 +00:00
BeforePageDisplayHook.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
BeforePageRedirectHook.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
CategoryViewer__doCategoryQueryHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
CategoryViewer__generateLinkHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ContentSecurityPolicyDefaultSourceHook.php Fix documentation about mode for ContentSecurityPolicy Hooks 2022-02-18 20:34:07 +00:00
ContentSecurityPolicyDirectivesHook.php Fix documentation about mode for ContentSecurityPolicy Hooks 2022-02-18 20:34:07 +00:00
ContentSecurityPolicyScriptSourceHook.php Fix documentation about mode for ContentSecurityPolicy Hooks 2022-02-18 20:34:07 +00:00
DeleteUnknownPreferencesHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditFilterHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditFilterMergedContentHook.php Fix typos in comments (E-H) 2021-12-30 18:14:43 +05:30
EditFormInitialTextHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditFormPreloadTextHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__attemptSave_afterHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__attemptSaveHook.php Use WikiPage::doUserEditContent() instead of ::doEditContent() 2021-06-28 00:11:30 -07:00
EditPage__importFormDataHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__showEditForm_fieldsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__showEditForm_initialHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__showReadOnlyForm_initialHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPage__showStandardInputs_optionsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageBeforeConflictDiffHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageBeforeEditButtonsHook.php Fix various documentation related to scalar types 2022-03-09 20:49:51 +00:00
EditPageBeforeEditToolbarHook.php Consistently use @deprecated since rather @deprecated 2022-03-06 02:55:54 +00:00
EditPageCopyrightWarningHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageGetCheckboxesDefinitionHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageGetDiffContentHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageGetPreviewContentHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageNoSuchSectionHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
EditPageTosSummaryHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
FileDeleteCompleteHook.php Fix various documentation related to null types (part II) 2022-03-08 23:45:31 +00:00
FormatAutocommentsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetCacheVaryCookiesHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetCanonicalURLHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetDefaultSortkeyHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetDoubleUnderscoreIDsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetFullURLHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetInternalURLHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetIPHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetLocalURL__ArticleHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetLocalURL__InternalHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetLocalURLHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetMagicVariableIDsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GetRelativeTimestampHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
GitViewersHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ImageBeforeProduceHTMLHook.php Improve nullable documentation in Linker class about args 2021-11-02 11:43:56 +01:00
ImgAuthBeforeStreamHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ImgAuthModifyHeadersHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ImportHandleUnknownUserHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
InitializeArticleMaybeRedirectHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
IsTrustedProxyHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
LanguageLinksHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
LinkerMakeExternalImageHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
LinkerMakeExternalLinkHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
LinkerMakeMediaLinkFileHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MagicWordwgVariableIDsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MaintenanceRefreshLinksInitHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MaintenanceShellStartHook.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MaintenanceUpdateAddParamsHook.php phpcs: remove some unneeded suppressions 2021-02-17 16:16:24 +00:00
MakeGlobalVariablesScriptHook.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
MediaWikiPerformActionHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MediaWikiServicesHook.php Add warning to MediaWikiServicesHook interface. 2021-07-02 22:11:19 +02:00
MimeMagicGuessFromContentHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MimeMagicImproveFromExtensionHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MimeMagicInitHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
MovePageCheckPermissionsHook.php Fix various documentation related to null types (part II) 2022-03-08 23:45:31 +00:00
MovePageIsValidMoveHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OpenSearchUrlsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageAfterGetHeadLinksArrayHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageBeforeHTMLHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageBodyAttributesHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageCheckLastModifiedHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageMakeCategoryLinksHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
OutputPageParserOutputHook.php Rename variables to disambiguate OutputPageParserOutput hook 2021-11-23 15:50:01 -05:00
PageMoveCompleteHook.php Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
PageMoveCompletingHook.php Post Revision-removal cleanup 2021-06-24 00:32:39 +00:00
ParserTestGlobalsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ParserTestTablesHook.php ParserTestTablesHook: do not document as both stable and deprecated 2021-06-02 14:15:23 +00:00
ProtectionForm__buildFormHook.php Use OOUI for protection form 2021-01-30 00:19:02 -05:00
ProtectionForm__saveHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ProtectionForm__showLogExtractHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
ProtectionFormAddFormFieldsHook.php Use OOUI for protection form 2021-01-30 00:19:02 -05:00
SelfLinkBeginHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
SetupAfterCacheHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TempUserCreatedRedirectHook.php TempUser CentralAuth integration 2022-05-10 09:06:05 +10:00
TestCanonicalRedirectHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleExistsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleGetEditNoticesHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleGetRestrictionTypesHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleIsAlwaysKnownHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleIsMovableHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleMoveHook.php Add type hints to several hook interfaces 2021-01-04 14:27:48 +01:00
TitleMoveStartingHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
TitleSquidURLsHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
UnitTestsAfterDatabaseSetupHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
UnitTestsBeforeDatabaseTeardownHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
UnitTestsListHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
UserToolLinksEditHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
WebRequestPathInfoRouterHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
WebResponseSetCookieHook.php Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00