per page, with , order by , clip by
Results of 1 - 10 of about 16 for authenticate (0.004 sec.)
django.contrib.auth 13810
django.contrib.auth このドキュメントでは、Django の 認証システムのコンポーネントの API リファレンス資料を提供しています。 これらのコンポーネントの使い方や、認証と認可をカスタマイズする方法の詳細は、 認証トピックガイド を参照してください。 U ... ます。 last_login ユーザーが最後にログインした日時です。 date_joined アカウントが作成された日時。 属性 class models. User is_authenticated ( AnonymousUser.is_authenticated が常に False なのとは対照的に) 常に True の読み取り専用属性です。ユーザが認証済みかどうか ... nymous 常に False の読み取り専用属性です。 User オブジェクトと AnonymousUser オブジェクトを区別する方法です。一般的に、 is_authenticated を使う方が好ましいと言えます。 メソッド class models. User get_username () ユーザのユーザ名を返します。 User モデルはスワ ... username が常に空の文字列です。 get_username() が常に空の文字列を返します。 is_anonymous が False ではなく True です。 is_authenticated が False ではなく True です。 is_staff と is_superuser が常に False です。 is_active が常に False です。 groups と user_p ...
https://man.mtool.work/django/6.1/ref/contrib/auth.html
Django の認証方法のカスタマイズ 10986
Django の認証方法のカスタマイズ Django がデフォルトで提供する認証機能は、ほとんどの一般的なケースでは十分なものですが、デフォルトではニーズにマッチしない場合もあると思います。自分のプロジェクトで認証のカスタマイズを行うためには、Django が提 ... o maintains a list of "authentication backends" that it checks for authentication. When somebody calls django.contrib.auth.authenticate() -- as described in How to log a user in -- Django tries authenticating across all of its authentication backends. If the ... delete() の実行です。 認証バックエンドの実装 認証 (authentication) バックエンドは、2つの必須メソッド: get_user(user_id) と authenticate(request, **credentials) を実装したクラスであり、パーミッションに関連した省略可能な 認可 (authorization) メソッド もあります ... 何でもかまいませんが、ユーザーオブジェクトの主キーである必要があります。そして、ユーザーオブジェクトまたは None を返します。 authenticate メソッドは request 引数と credentials キーワード引数を取ります。殆どの場合、これは次のようになります。 from django.contrib ...
https://man.mtool.work/django/6.1/topics/auth/customizing.html
Djangoの認証システムを使用する 10327
Djangoの認証システムを使用する このドキュメントでは、デフォルト設定でのDjangoの認証システムの使用方法を説明します。この設定は、タスクの適切な範囲を管理することで、最も一般的なプロジェクトのニーズにかなうよう徐々に発展してきました。そして、パ ... のセッションは全てログアウトされます。詳細は パスワード変更時にセッションを無効化する を参照してください。 ユーザを認証する authenticate ( request = None , ** credentials ) [ソース] aauthenticate ( request = None , ** credentials ) 非同期バージョン : aauthent ... icate() 認証情報のセットを検証するには authenticate() を使います。デフォルトでは username と password をキーワード引数として受け取り、それぞれの 認証バックエンド に問い合わせ ... 。どの認証バックエンドでも無効か、 PermissionDenied を返した場合、 None が返却されます。例: from django.contrib.auth import authenticate user = authenticate ( username = "john" , password = "secret" ) if user is not None : # A backend authenticated the creden ...
https://man.mtool.work/django/6.1/topics/auth/default.html
Django 1.11.10 リリースノート 9028
Django 1.11.10 リリースノート 2018年2月1日 Django 1.11.10 では、1.11.9 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationF ... del has two foreign keys to the same model and a target model is deleted ( #29016 ). Fixed a regression where contrib.auth.authenticate() crashes if an authentication backend doesn't accept request and a later one does ( #29071 ). Fixed crash when entering a ...
https://man.mtool.work/django/6.1/releases/1.11.10.html
Django 1.11.2 リリースノート 8802
Django 1.11.2 リリースノート June 1, 2017 Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated. Minor feature The new LiveServerTestCase.port attribute rea ... lid IPv6 URLs ( #28142 ). Fixed regression causing pickling of model fields to crash ( #28188 ). Fixed django.contrib.auth.authenticate() when multiple authentication backends don't accept a positional request argument ( #28207 ). Fixed introspection of inde ...
https://man.mtool.work/django/6.1/releases/1.11.2.html
Django 2.0.2 リリースノート 8802
Django 2.0.2 リリースノート 2018年2月1日 Django 2.0.2 では、2.0.1 にあった1つのセキュリティの問題と、いくつかのバグを修正しました。 CVE-2018-6188: AuthenticationForm における情報漏えい A regression in Django 1.11.8 made AuthenticationForm r ... regression where a queryset that annotates with geometry objects crashes ( #29054 ). Fixed a regression where contrib.auth.authenticate() crashes if an authentication backend doesn't accept request and a later one does ( #29071 ). Fixed a regression where ma ...
https://man.mtool.work/django/6.1/releases/2.0.2.html
Django 4.2.14 リリースノート 8594
Django 4.2.14 リリースノート 2024年7月9日 Django 4.2.14では、4.2.13における2件の深刻度 "moderate" のセキュリティ問題と2件の深刻度 "low" のセキュリティ問題が修正されています。 CVE-2024-38875: django.utils.html.urlize() における潜在的なサービ ... る可能性がありました。 CVE-2024-39329: 使用できないパスワードを持つユーザーに対するタイミング差を利用したユーザー名列挙 The authenticate() method allowed remote attackers to enumerate users via a timing attack involving login requests for users with unusable ...
https://man.mtool.work/django/6.1/releases/4.2.14.html
Django 5.0.7 リリースノート 8369
Django 5.0.7 リリースノート 2024年7月9日 Django 5.0.7 では、5.0.6 における2件の深刻度 "moderate" のセキュリティ問題、2件の深刻度 "low" のセキュリティ問題、そして1件のバグが修正されています。 CVE-2024-38875: django.utils.html.urlize() におけ ... る可能性がありました。 CVE-2024-39329: 使用できないパスワードを持つユーザーに対するタイミング差を利用したユーザー名列挙 The authenticate() method allowed remote attackers to enumerate users via a timing attack involving login requests for users with unusable ...
https://man.mtool.work/django/6.1/releases/5.0.7.html
Django 1.11 リリースノート 8144
Django 1.11 リリースノート April 4, 2017 Django 1.11 へようこそ! このリリースノートでは、Django 1.10 および過去のバージョンからアップグレードする際に知っておくべきいくつかの 後方互換性のない変更 に加え、 新機能 を説明しています。 いくつかの ... セットを指定できるようになりました。 パスワードのバリデータ help_text が UserCreationForm に追加されました。 HttpRequest が authenticate() に渡されるようになりました。これは、 request 属性を受け入れる場合にリクエストを認証バックエンドに順番に渡します。 user_l ... ます。 DatabaseIntrospection.get_constraints() が採用されたため、 DatabaseIntrospection.get_indexes() は非推奨となりました。 authenticate() が認証バックエンドの authenticate() メソッドに request 引数を渡すようになりました。 request を第 1 省略可能引数として受け ...
https://man.mtool.work/django/6.1/releases/1.11.html
REMOTE_USER で認証する 7936
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 ... hnz_ldap , CAS , WebAuth , mod_auth_sspi , etc. When the web server takes care of authentication it typically provides the authenticated user as REMOTE_USER . In Django, this value is made available in request.META (as REMOTE_USER when supplied as an environ ... ddleware will detect the username in request.META['REMOTE_USER'] (or request.META['HTTP_REMOTE_USER'] under ASGI) and will authenticate and auto-login that user using the RemoteUserBackend . この特定の設定は、デフォルトの ModelBackend による認証を無効にするこ ...
https://man.mtool.work/django/6.1/howto/auth-remote-user.html
PREV 1 2 NEXT