- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 1,006 for Security (0.08 seconds)
-
docs_src/security/tutorial007_an_py310.py
import secrets from typing import Annotated from fastapi import Depends, FastAPI, HTTPException, status from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() def get_current_username( credentials: Annotated[HTTPBasicCredentials, Depends(security)], ): current_username_bytes = credentials.username.encode("utf8") correct_username_bytes = b"stanleyjobson"
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.1K bytes - Click Count (0) -
docs_src/security/tutorial006_py310.py
from fastapi import Depends, FastAPI from fastapi.security import HTTPBasic, HTTPBasicCredentials app = FastAPI() security = HTTPBasic() @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 321 bytes - Click Count (0) -
src/test/java/jcifs/SmbResourceTest.java
// When ACE[] security1 = mockResource.getSecurity(); ACE[] security2 = mockResource.getSecurity(true); ACE[] shareSecurity = mockResource.getShareSecurity(false); // Then assertNotNull(security1, "Security ACEs should not be null"); assertNotNull(security2, "Security ACEs with resolve should not be null");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/ServerData.java
*/ public int scapabilities; /** * OEM domain name of the server. */ public String oemDomainName; /** * Security mode flags. */ public int securityMode; /** * Security settings for the session. */ public int security; /** * Whether the server requires encrypted passwords. */ public boolean encryptedPasswords; /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.9K bytes - Click Count (0) -
src/main/java/jcifs/pac/PacSidAttributes.java
/** * Constructs a new PacSidAttributes instance. * * @param id the Security Identifier * @param attributes the attribute flags associated with the SID */ public PacSidAttributes(final SID id, final int attributes) { this.id = id; this.attributes = attributes; } /** * Gets the Security Identifier. * * @return the SID associated with this instance */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponse.java
/** * Response for SMB1 NT Transaction security descriptor query. * * This response contains the Windows security descriptor retrieved * from the server, including access control information. */ public class NtTransQuerySecurityDescResponse extends SmbComNtTransactionResponse { private SecurityDescriptor securityDescriptor; /** * Constructs an NT transaction query security descriptor response.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.2K bytes - Click Count (0) -
docs/zh/docs/advanced/security/http-basic-auth.md
* 导入 `HTTPBasic` 与 `HTTPBasicCredentials` * 使用 `HTTPBasic` 创建**安全方案** * 在*路径操作*的依赖项中使用 `security` * 返回类型为 `HTTPBasicCredentials` 的对象: * 包含发送的 `username` 与 `password` {* ../../docs_src/security/tutorial006_an_py310.py hl[4,8,12] *} 第一次打开 URL(或在 API 文档中点击 **Execute** 按钮)时,浏览器要求输入用户名与密码: <img src="/img/tutorial/security/image12.png"> ## 检查用户名 { #check-the-username } 以下是更完整的示例。 使用依赖项检查用户名与密码是否正确。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 4.4K bytes - Click Count (0) -
.github/ISSUE_TEMPLATE/bug.md
check your OS is [supported](https://www.elastic.co/support/matrix#show_os). If it is not, the issue is likely to be closed. For security vulnerabilities please only send reports to security@elastic.co. See https://www.elastic.co/community/security for more information. Please fill in the following details to help us reproduce the bug: --> **Elasticsearch version** (`bin/elasticsearch --version`):
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu May 07 00:50:18 GMT 2020 - 1.3K bytes - Click Count (0) -
tests/test_top_level_security_scheme_in_openapi.py
# Test security scheme at the top level, including OpenAPI # Ref: https://github.com/fastapi/fastapi/discussions/14263 # Ref: https://github.com/fastapi/fastapi/issues/14271 from fastapi import Depends, FastAPI from fastapi.security import HTTPBearer from fastapi.testclient import TestClient from inline_snapshot import snapshot app = FastAPI() bearer_scheme = HTTPBearer() @app.get("/", dependencies=[Depends(bearer_scheme)])
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 1.9K bytes - Click Count (0) -
android-test/src/main/res/xml/network_security_config.xml
<?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="false"> </base-config>
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jul 16 22:15:20 GMT 2019 - 158 bytes - Click Count (0)