Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for user1s (0.27 sec)

  1. docs/zh/docs/tutorial/security/oauth2-jwt.md

    第一个函数用于校验接收的密码是否匹配存储的哈希值。
    
    第三个函数用于身份验证,并返回用户。
    
    ```Python hl_lines="7  48  55-56  59-60  69-75"
    {!../../../docs_src/security/tutorial004.py!}
    ```
    
    !!! note "笔记"
    
        查看新的(伪)数据库 `fake_users_db`,就能看到哈希后的密码:`"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`。
    
    ## 处理 JWT 令牌
    
    导入已安装的模块。
    
    创建用于 JWT 令牌签名的随机密钥。
    
    使用以下命令,生成安全的随机密钥:
    
    <div class="termy">
    
    ```console
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/security/oauth2-jwt.md

    That way, you can create a token with an expiration of, let's say, 1 week. And then when the user comes back the next day with the token, you know that user is still logged in to your system.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/security/oauth2-jwt.md

    さらに、ユーザーを認証して返す関数も作成します。
    
    ```Python hl_lines="7  48  55-56  59-60  69-75"
    {!../../../docs_src/security/tutorial004.py!}
    ```
    
    !!! note "備考"
        新しい(偽の)データベース`fake_users_db`を確認すると、ハッシュ化されたパスワードが次のようになっていることがわかります:`"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`
    
    ## JWTトークンの取り扱い
    
    インストールした複数のモジュールをインポートします。
    
    JWTトークンの署名に使用されるランダムな秘密鍵を生成します。
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/security/oauth2-jwt.md

        ```Python hl_lines="7  48  55-56  59-60  69-75"
        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    !!! note "Hinweis"
        Wenn Sie sich die neue (gefakte) Datenbank `fake_users_db` anschauen, sehen Sie, wie das gehashte Passwort jetzt aussieht: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`.
    
    ## JWT-Token verarbeiten
    
    Importieren Sie die installierten Module.
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:27:06 GMT 2024
    - 15.1K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/security/oauth2-jwt.md

        ```
    
    === "🐍 3️⃣.1️⃣0️⃣ &amp; 🔛"
    
        ```Python hl_lines="6  47  54-55  58-59  68-74"
        {!> ../../../docs_src/security/tutorial004_py310.py!}
        ```
    
    !!! note
        🚥 👆 ✅ 🆕 (❌) 💽 `fake_users_db`, 👆 🔜 👀 ❔ #️⃣ 🔐 👀 💖 🔜: `"$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW"`.
    
    ## 🍵 🥙 🤝
    
    🗄 🕹 ❎.
    
    ✍ 🎲 ㊙ 🔑 👈 🔜 ⚙️ 🛑 🥙 🤝.
    
    🏗 🔐 🎲 ㊙ 🔑 ⚙️ 📋:
    
    <div class="termy">
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top