per page, with , order by , clip by
Results of 1 - 10 of about 15 for AuthenticationMiddleware (0.005 sec.)
REMOTE_USER で認証する 13636
REMOTE_USER で認証する This document describes how to make use of external authentication sources in your Django applications. This type of authentication solution is typically seen on intranet sites, with single sign-on solutions such as I ... E 設定に django.contrib.auth.middleware.RemoteUserMiddleware を加える必要があります。これは django.contrib.auth.middleware.AuthenticationMiddleware の 後に 追加してください: MIDDLEWARE = [ "..." , "django.contrib.auth.middleware.AuthenticationMiddleware" , "django.contr ... e.RemoteUserMiddleware : の代わりに MIDDLEWARE 設定で使用されます。 MIDDLEWARE = [ "..." , "django.contrib.auth.middleware.AuthenticationMiddleware" , "mysite.middleware.CustomHeaderRemoteUserMiddleware" , "..." , ] 警告 RemoteUserMiddleware must not be deployed in conf ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
ミドルウェア 11581
ミドルウェア このドキュメントでは、Djangoに付属するすべてのミドルウェアコンポーネントについて説明します。それらの使用方法や独自のミドルウェアの作成方法についての情報は、 ミドルウェア使用ガイド を参照してください。 使用できる middleware Cach ... の HttpRequest オブジェクトに、現在のサイトを表す site 属性を追加します。詳しくは sites のドキュメント を参照してください。 Authentication middleware class AuthenticationMiddleware [ソース] HttpRequest オブジェクトに対して、現在ログインしているユーザーを表す user 属性を追 ... ページのデフォルトは settings.LOGIN_URL ですが、カスタマイズ可能です。 このミドルウェアを有効にするには、 MIDDLEWARE 設定に AuthenticationMiddleware の 後に 追加します。 MIDDLEWARE = [ "..." , "django.contrib.auth.middleware.AuthenticationMiddleware" , "django.contrib.au ... ルウェアの前、ミドルウェアチェインを呼び出す前に置きます。 SessionMiddleware の後に、 CSRF_USE_SESSIONS を使用している場合。 AuthenticationMiddleware session ストレージを使うので、 SessionMiddleware の後に置きます。 LoginRequiredMiddleware user オブジェクトを使うので、 Au ...
https://man.mtool.work/django/6.1/ref/middleware.html
ミドルウェア (Middleware) 10205
ミドルウェア (Middleware) ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは出力をグローバルに置き換えるための、軽量で低レベルの「プラグイン」システムです。 各ミドルウェ ... アのコンポーネントは、それぞれある特定の機能を実行する役目を持っています。たとえば、Django には AuthenticationMiddleware というミドルウェアコンポーネントがあります。このミドルウェアは、セッションを利用して、リクエストとユーザーとを関連付けます ... django.middleware.common.CommonMiddleware" , "django.middleware.csrf.CsrfViewMiddleware" , "django.contrib.auth.middleware.AuthenticationMiddleware" , "django.contrib.messages.middleware.MessageMiddleware" , "django.middleware.clickjacking.XFrameOptionsMiddleware" , ] D ... mmonMiddleware を使うことを強くお勧めします。 ミドルウェアは他のミドルウェアに依存するため、 MIDDLEWARE の順番は重要です。 AuthenticationMiddleware はセッション内に認証済みユーザを保持します。したがって、 SessionMiddleware の後に起動する必要があります。Django のミドルウ ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
Django でのユーザー認証 9526
Django でのユーザー認証 Django はユーザー認証システムを搭載しています。ユーザーアカウント、グループ、パーミッション、そしてCookieベースのユーザーセッションを制御します。このドキュメントのこのセクションでは、デフォルトの実装がどう機能するか、 ... 。 そして、あなたの MIDDLEWARE 内にある以下の項目です: SessionMiddleware は、リクエストを横断する セッション を管理します。 AuthenticationMiddleware は、セッションを使用してユーザーをリクエストに関連付けます。 これらの設定を整えた上で、 manage.py migrate コマンドを実行す ...
https://man.mtool.work/django/6.1/topics/auth/
システムチェックフレームワーク 8150
システムチェックフレームワーク システムチェックフレームワークは、Django プロジェクトを検証するための静的チェックのセットです。一般的な問題を検出し、それらを修正するヒントを提供します。このフレームワークは拡張性があり、独自のチェックを簡単に ... ALLED_APPS に入っていなければなりません。 admin.E408 : admin アプリケーションを使用するには django.contrib.auth.middleware.AuthenticationMiddleware を MIDDLEWARE に設定する必要があります。 admin.E409 : admin アプリケーションを使用するには django.contrib.messages.middlew ... auth.E013 : django.contrib.auth.middleware.LoginRequiredMiddleware を使用するには、その前に django.contrib.auth.middleware.AuthenticationMiddleware をMIDDLEWAREで定義する必要があります。 contenttypes モデルに GenericForeignKey または GenericRelation が含まれる場合、以下 ...
https://man.mtool.work/django/6.1/ref/checks.html
リクエストとレスポンスのオブジェクト 8150
リクエストとレスポンスのオブジェクト 簡単な概要 Django は、システムを通じてステータスを渡すために、リクエストとレスポンスのオブジェクトを使います。 あるページがリクエストされたとき、Django はリクエストに関するメタデータを含んだ HttpRequest ... re : An instance of Site or RequestSite as returned by get_current_site() representing the current site. HttpRequest. user AuthenticationMiddleware から: 現在ログインしているユーザーを表す AUTH_USER_MODEL のインスタンスです。ユーザーが現在ログインしていない場合、 user は ... omething for anonymous users. The auser() can be used to access the user in async contexts. メソッド HttpRequest. auser () AuthenticationMiddleware から: コルーチン。現在ログインしているユーザーを表す AUTH_USER_MODEL のインスタンスを返します。もしユーザーが現在ログインし ...
https://man.mtool.work/django/6.1/ref/request-response.html
django.contrib.auth 7802
django.contrib.auth このドキュメントでは、Django の 認証システムのコンポーネントの API リファレンス資料を提供しています。 これらのコンポーネントの使い方や、認証と認可をカスタマイズする方法の詳細は、 認証トピックガイド を参照してください。 U ... かどうか、また有効なセッションがあるかどうかをチェックするわけでもありません。 通常、 request.user のこの属性をチェックして AuthenticationMiddleware (現在ログイン中のユーザを表します) によって格納されているかどうかを調べます。 User のインスタンスの場合、この属性は True と ...
https://man.mtool.work/django/6.1/ref/contrib/auth.html
Django 1.10 リリースノート 7802
Django 1.10 リリースノート 2016年8月1日 Django 1.10 へようこそ! このリリースノートでは、 バージョン 1.10 の新機能 と、Django 1.9 以前からアップグレードする際に注意が必要な 後方互換性が失われた変更点 について説明します。私たちは、非推奨の期間 ... 変更されました。Django 2.0 まではメソッドとしても機能しますが、Django ではすべて属性アクセスとして使用されます。 たとえば、 AuthenticationMiddleware を使用して、ユーザーが現在ログインしているかどうかを知りたいときは、次のようにして、 if request . user . is_authenticated ... s.render_to_response() Session verification is enabled regardless of whether or not 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' is in MIDDLEWARE_CLASSES . SessionAuthenticationMiddleware no longer has any purpose and can be removed from MIDDLEWARE_C ...
https://man.mtool.work/django/6.1/releases/1.10.html
Django 1.7 リリースノート 7802
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... om AbstractBaseUser , changing a user's password now invalidates old sessions if the django.contrib.auth.middleware.SessionAuthenticationMiddleware is enabled. See パスワード変更時にセッションを無効化する for more details. django.contrib.formtools Calls to WizardView.do ... c and prevent deprecation warnings when doing things like testing reusable apps with minimal settings, SessionMiddleware , AuthenticationMiddleware , and MessageMiddleware were removed from the defaults. These classes will still be included in the default settings gener ... the ISO-8859-1 encoding when the input is not valid UTF-8. With the addition of the django.contrib.auth.middleware.SessionAuthenticationMiddleware to the default project template (pre-1.7.2 only), a database must be created before accessing a page using runserver . The ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 1.8 リリースノート 7802
Django 1.8 リリースノート April 1, 2015 Django 1.8 へようこそ! このリリースノートでは、 バージョン 1.8 の新機能 と、Django 1.7 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した機能 ... ew.permanent The default value of the RedirectView.permanent attribute will change from True to False in Django 1.9. Using AuthenticationMiddleware without SessionAuthenticationMiddleware django.contrib.auth.middleware.SessionAuthenticationMiddleware was added in Django ... lity was moved to auth.get_user() and, for backwards compatibility, enabled only if 'django.contrib.auth.middleware.SessionAuthenticationMiddleware' appears in MIDDLEWARE_CLASSES . In Django 1.10, session verification will be enabled regardless of whether or not Session ... AuthenticationMiddleware is enabled (at which point SessionAuthenticationMiddleware will have no significance). You can add it to your MIDDLEWARE_CLASSES sometime before then to opt-in. Please read the upgr ...
https://man.mtool.work/django/6.1/releases/1.8.html
PREV 1 2 NEXT