- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 547 for PassworD (0.14 sec)
-
docs/pt/docs/tutorial/security/simple-oauth2.md
## Pegue o `username` (nome de usuário) e `password` (senha) É utilizado o utils de segurança da **FastAPI** para obter o `username` e a `password`. OAuth2 especifica que ao usar o "password flow" (fluxo de senha), que estamos usando, o cliente/usuário deve enviar os campos `username` e `password` como dados do formulário.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Oct 31 12:17:45 UTC 2024 - 13.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
String password = auth.getPassword(); lmHash = new byte[0]; ntHash = new byte[(password.length() + 1) * 2]; writeString( password, ntHash, 0 ); } else { // plain text String password = auth.getPassword(); lmHash = new byte[(password.length() + 1) * 2];
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 7.3K bytes - Viewed (0) -
src/test/java/jcifs/tests/KerberosTest.java
} private static KerberosTicket getKerberosTicket ( KerberosPrincipal principal, String password, Long expire ) throws Exception { PrincipalName principalName = convertPrincipal(principal); KrbAsReqBuilder builder = new KrbAsReqBuilder(principalName, password != null ? password.toCharArray() : new char[0]); if ( expire != null ) { System.out.println("Request expires " + expire);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 11.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
import okhttp3.internal.platform.Platform import okhttp3.tls.HandshakeCertificates import okhttp3.tls.HeldCertificate import org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement object TlsUtil { val password = "password".toCharArray() private val localhost: HandshakeCertificates by lazy { // Generate a self-signed cert for the server to serve and the client to trust. val heldCertificate = HeldCertificate.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/security/simple-oauth2.md
# OAuth2 实现简单的 Password 和 Bearer 验证 本章添加上一章示例中欠缺的部分,实现完整的安全流。 ## 获取 `username` 和 `password` 首先,使用 **FastAPI** 安全工具获取 `username` 和 `password`。 OAuth2 规范要求使用**密码流**时,客户端或用户必须以表单数据形式发送 `username` 和 `password` 字段。 并且,这两个字段必须命名为 `username` 和 `password` ,不能使用 `user-name` 或 `email` 等其它名称。 不过也不用担心,前端仍可以显示终端用户所需的名称。 数据库模型也可以使用所需的名称。 但对于登录*路径操作*,则要使用兼容规范的 `username` 和 `password`,(例如,实现与 API 文档集成)。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.8K bytes - Viewed (0) -
tests/test_security_http_basic_realm_description.py
return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} def test_security_http_basic_no_credentials():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 2.8K bytes - Viewed (0) -
docs_src/security/tutorial007.py
current_password_bytes = credentials.password.encode("utf8") correct_password_bytes = b"swordfish" is_correct_password = secrets.compare_digest( current_password_bytes, correct_password_bytes ) if not (is_correct_username and is_correct_password): raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Incorrect username or password",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Jan 11 14:33:05 UTC 2024 - 1.1K bytes - Viewed (0) -
docs_src/extra_models/tutorial002.py
class UserIn(UserBase): password: str class UserOut(UserBase): pass class UserInDB(UserBase): hashed_password: str def fake_password_hasher(raw_password: str): return "supersecret" + raw_password def fake_save_user(user_in: UserIn): hashed_password = fake_password_hasher(user_in.password)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 824 bytes - Viewed (0) -
internal/config/certs_test.go
if err != nil { os.Remove(privateKey) t.Fatalf("Test %d: failed to create tmp certificate file: %v", i, err) } if testCase.password != "" { t.Setenv(EnvCertPassword, testCase.password) } _, err = LoadX509KeyPair(certificate, privateKey) if err != nil && !testCase.shouldFail { t.Errorf("Test %d: test should succeed but it failed: %v", i, err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 21.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/user/AdminUserAction.java
if (form.crudMode.intValue() == CrudMode.CREATE || StringUtil.isNotBlank(form.password)) { final String encodedPassword = ComponentUtil.getComponent(FessLoginAssist.class).encryptPassword(form.password); entity.setOriginalPassword(form.password); entity.setPassword(encodedPassword); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 15.9K bytes - Viewed (0)