- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 22 for fake_users_db (0.05 sec)
-
docs_src/security/tutorial004_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 4.2K bytes - Viewed (0) -
docs_src/security/tutorial005_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.3K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
docs/zh/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 令牌签名的随机密钥。 使用以下命令,生成安全的随机密钥: <div class="termy">Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 8.9K bytes - Viewed (0) -
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)