Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for fake_users_db (0.06 sec)

  1. tests/test_tutorial/test_security/test_tutorial004.py

        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_verify_password(mod: ModuleType):
        assert mod.verify_password(
            "secret", mod.fake_users_db["johndoe"]["hashed_password"]
        )
    
    
    def test_get_password_hash(mod: ModuleType):
        assert mod.get_password_hash("johndoe")
    
    
    def test_create_access_token(mod: ModuleType):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_security/test_tutorial005.py

        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    def test_verify_password(mod: ModuleType):
        assert mod.verify_password(
            "secret", mod.fake_users_db["johndoe"]["hashed_password"]
        )
    
    
    def test_get_password_hash(mod: ModuleType):
        assert mod.get_password_hash("secretalice")
    
    
    def test_create_access_token(mod: ModuleType):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/security/oauth2-jwt.md

    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note | Hinweis
    
    Wenn Sie sich die neue (gefakte) Datenbank `fake_users_db` anschauen, sehen Sie, wie das gehashte Passwort jetzt aussieht: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
    
    ///
    
    ## JWT-Token verarbeiten { #handle-jwt-tokens }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Oct 01 15:19:54 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/security/oauth2-jwt.md

    Y otra más para autenticar y devolver un usuario.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note | Nota
    
    Si revisas la nueva (falsa) base de datos `fake_users_db`, verás cómo se ve ahora la contraseña con hash: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
    
    ///
    
    ## Manejo de tokens JWT { #handle-jwt-tokens }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/oauth2-jwt.md

    And another one to authenticate and return a user.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note
    
    If you check the new (fake) database `fake_users_db`, you will see how the hashed password looks like now: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
    
    ///
    
    ## Handle JWT tokens { #handle-jwt-tokens }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/security/oauth2-jwt.md

    И еще одну — для аутентификации и возврата пользователя.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note | Технические детали
    Если проверить новую (фальшивую) базу данных `fake_users_db`, то можно увидеть, как теперь выглядит хэшированный пароль: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
    ///
    
    ## Работа с JWT токенами { #handle-jwt-tokens }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/security/oauth2-jwt.md

    E outra para autenticar e retornar um usuário.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note | Nota
    
    Se você verificar o novo banco de dados (falso) `fake_users_db`, você verá como o hash da senha se parece agora: `"$argon2id$v=19$m=65536,t=3,p=4$wagCPXjifgvUFBzq4hqe3w$CYaIb8sB+wtD+Vu/P4uod1+Qof8h+1g7bbDlBID48Rc"`.
    
    ///
    
    ## Manipular tokens JWT { #handle-jwt-tokens }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/security/oauth2-jwt.md

    그리고 받은 패스워드가 저장된 해시와 일치하는지 검증하는 또 다른 유틸리티 함수도 생성합니다.
    
    그리고 사용자를 인증하고 반환하는 또 다른 함수도 생성합니다.
    
    {* ../../docs_src/security/tutorial004_an_py310.py hl[8,49,56:57,60:61,70:76] *}
    
    /// note
    
    새로운 (가짜) 데이터베이스 `fake_users_db`를 확인하면, 해시 처리된 패스워드가 어떻게 생겼는지 볼 수 있습니다: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`.
    
    ///
    
    ## JWT 토큰 처리
    
    설치된 모듈을 임포트 합니다.
    
    JWT 토큰 서명에 사용될 임의의 비밀키를 생성합니다.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/security/oauth2-jwt.md

    また、受け取ったパスワードが保存されているハッシュと一致するかどうかを検証するユーティリティも作成します。
    
    さらに、ユーザーを認証して返す関数も作成します。
    
    {* ../../docs_src/security/tutorial004.py hl[7,48,55:56,59:60,69:75] *}
    
    /// note | 備考
    
    新しい(偽の)データベース`fake_users_db`を確認すると、ハッシュ化されたパスワードが次のようになっていることがわかります:`"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`
    
    ///
    
    ## JWTトークンの取り扱い
    
    インストールした複数のモジュールをインポートします。
    
    JWTトークンの署名に使用されるランダムな秘密鍵を生成します。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 14K bytes
    - Viewed (1)
Back to top