Extension:PluggableAuth/Hooks/PluggableAuthUserAuthorization/ja

This page is a translated version of the page Extension:PluggableAuth/Hooks/PluggableAuthUserAuthorization and the translation is 50% complete.
PluggableAuthUserAuthorization
バージョン 1.0 (Gerrit change 170132) から利用可能
called to determine if the user is authorized to log in to the wiki
関数の定義:
public static function onPluggableAuthUserAuthorization( UserIdentity $user, bool &$authorized ) { ... }
フックのアタッチ:
$wgHooks['PluggableAuthUserAuthorization'][] = 'MyExtensionHooks::onPluggableAuthUserAuthorization';
呼び出し元:ファイル: PluggableAuth / includes/PluggableAuthLogin.php
関数: execute

フックの設定についての詳細情報は Manual:フック を参照してください。
このフックを使用する他の拡張機能の例は、Category:PluggableAuthUserAuthorization extensions/ja を参照してください。

詳細

  • UserIdentity $user - User オブジェクト
  • bool &$authorized - Boolean return value (true if authorized, false otherwise)

The possible return values for the handler are defined in Manual:Hooks. In particular, if there has not been an error, the hook function should return no value or null to allow other handlers to run or it should return false to prevent further handlers from running. It is, therefore, possible that the value of $authorized passed in may be false from a previous handler invocation that returned no value or null. The handler may choose to override that value or to leave it unchanged.