... be configured to make use of the REMOTE_USER value using the RemoteUserMiddleware or PersistentRemoteUserMiddleware , and RemoteUserBackend classes found in django.contrib.auth . 設定 ¶ 最初に次のように MIDDLEWARE 設定に django.contrib.auth.middleware.RemoteUser ... "django.contrib.auth.middleware.RemoteUserMiddleware" , "..." , ] 続いて、 AUTHENTICATION_BACKENDS 設定の ModelBackend を RemoteUserBackend に変更します: AUTHENTICATION_BACKENDS = [ "django.contrib.auth.backends.RemoteUserBackend" , ] With this setup, RemoteUser ... A['REMOTE_USER'] (or request.META['HTTP_REMOTE_USER'] under ASGI) and will authenticate and auto-login that user using the RemoteUserBackend . この特定の設定は、デフォルトの ModelBackend による認証を無効にすることに注意してください。つまり、 REMOTE_USER の値が設定 ... ... be configured to make use of the REMOTE_USER value using the RemoteUserMiddleware or PersistentRemoteUserMiddleware , and RemoteUserBackend classes found in django.contrib.auth . 設定 ¶ 最初に次のように MIDDLEWARE 設定に django.contrib.auth.middleware.RemoteUser ... "django.contrib.auth.middleware.RemoteUserMiddleware" , "..." , ] 続いて、 AUTHENTICATION_BACKENDS 設定の ModelBackend を RemoteUserBackend に変更します: AUTHENTICATION_BACKENDS = [ "django.contrib.auth.backends.RemoteUserBackend" , ] With this setup, RemoteUser ... A['REMOTE_USER'] (or request.META['HTTP_REMOTE_USER'] under ASGI) and will authenticate and auto-login that user using the RemoteUserBackend . この特定の設定は、デフォルトの ModelBackend による認証を無効にすることに注意してください。つまり、 REMOTE_USER の値が設定 ... ... contrib.auth ¶ PBKDF2 パスワードハッシュに対するデフォルトのイテレーション回数が 320,000 から 390,000 に増加しました。 The RemoteUserBackend.configure_user() method now allows synchronizing user attributes with attributes in a remote system such as an LDAP direct ... s to related filters is deprecated. In Django 5.0, the exception will be raised. created=True is added to the signature of RemoteUserBackend.configure_user() . Support for RemoteUserBackend subclasses that do not accept this argument is deprecated. datetime.timez ... ... contrib.auth ¶ PBKDF2 パスワードハッシュに対するデフォルトのイテレーション回数が 320,000 から 390,000 に増加しました。 The RemoteUserBackend.configure_user() method now allows synchronizing user attributes with attributes in a remote system such as an LDAP direct ... s to related filters is deprecated. In Django 5.0, the exception will be raised. created=True is added to the signature of RemoteUserBackend.configure_user() . Support for RemoteUserBackend subclasses that do not accept this argument is deprecated. datetime.timez ... ... ) (django.db.models.query.QuerySet モジュール) aauthenticate() (django.contrib.auth モジュール) (ModelBackend のメソッド) (RemoteUserBackend のメソッド) Abs (django.db.models.functions のクラス) ABSOLUTE_URL_OVERRIDES setting abstract (Options の属性) abulk_creat ... のメソッド) aclear() (RelatedManager のメソッド) aclear_expired() (backends.base.SessionBase のメソッド) aconfigure_user() (RemoteUserBackend のメソッド) acontains() (django.db.models.query.QuerySet モジュール) ACos (django.db.models.functions のクラス) acount() ( ... on() allow_unicode (SlugField の属性) , [1] AllowAllUsersModelBackend (django.contrib.auth.backends のクラス) AllowAllUsersRemoteUserBackend (django.contrib.auth.backends のクラス) allowed_default (Expression の属性) ALLOWED_HOSTS setting allowlist (EmailValidato ... ... はありません。認証バックエンドは必ずしも is_active フラグをチェックしませんが、デフォルトのバックエンド ( ModelBackend ) と RemoteUserBackend はチェックを行います。非アクティブのユーザがログインできるようにしたい場合は、 AllowAllUsersModelBackend や AllowAllUsersR ... うでしょう。非アクティブなユーザーを拒否する confirm_login_allowed() メソッドをオーバーライドすることが推奨されます。 class RemoteUserBackend [ソース] ¶ このバックエンドを使用して、Django 以外で処理される外部認証を利用します。これは、 request.META['REMOTE_USER'] に ... 持つユーザに対して False を返します。 is_active フィールドを持たないカスタムユーザモデルは許可されます。 class AllowAllUsersRemoteUserBackend [ソース] ¶ RemoteUserBackend と同じですが、 user_can_authenticate は常に True を返すため、非アクティブなユーザを拒否しない ... ... y a number (e.g. "_1" , "_2" , etc.). RemoteUserMiddleware session hijacking ¶ When using the RemoteUserMiddleware and the RemoteUserBackend , a change to the REMOTE_USER header between requests without an intervening logout could result in the prior user's sessi ... ... y a number (e.g. "_1" , "_2" , etc.). RemoteUserMiddleware session hijacking ¶ When using the RemoteUserMiddleware and the RemoteUserBackend , a change to the REMOTE_USER header between requests without an intervening logout could result in the prior user's sessi ... ... column headers of TabularInline . django.contrib.auth ¶ The HttpRequest is now passed as the first positional argument to RemoteUserBackend.configure_user() , if it accepts it. django.contrib.gis ¶ Added Oracle support for the Envelope function. Added SpatiaLite ... ecated due to the intractable problems that it has. Use ManifestStaticFilesStorage or a third-party cloud storage instead. RemoteUserBackend.configure_user() is now passed request as the first positional argument, if it accepts it. Support for overrides that don' ... ... ) (django.db.models.query.QuerySet モジュール) aauthenticate() (django.contrib.auth モジュール) (ModelBackend のメソッド) (RemoteUserBackend のメソッド) Abs (django.db.models.functions のクラス) ABSOLUTE_URL_OVERRIDES setting abstract (Options の属性) abulk_creat ... のメソッド) aclear() (RelatedManager のメソッド) aclear_expired() (backends.base.SessionBase のメソッド) aconfigure_user() (RemoteUserBackend のメソッド) acontains() (django.db.models.query.QuerySet モジュール) ACos (django.db.models.functions のクラス) acount() ( ... on() allow_unicode (SlugField の属性) , [1] AllowAllUsersModelBackend (django.contrib.auth.backends のクラス) AllowAllUsersRemoteUserBackend (django.contrib.auth.backends のクラス) allowed_default (Expression の属性) ALLOWED_HOSTS setting allowlist (EmailValidato ... 2026年10月08日