- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 929 for security (0.05 sec)
-
tests/test_security_openid_connect_description.py
from fastapi import Depends, FastAPI, Security from fastapi.security.open_id_connect_url import OpenIdConnect from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() oid = OpenIdConnect( openIdConnectUrl="/openid", description="OpenIdConnect security scheme" ) class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(oid)):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/config/SecurityConfigurationTest.java
import jcifs.CIFSException; import jcifs.DialectVersion; /** * Security configuration tests * * Verifies that default security settings are properly configured * according to SMB security best practices. */ @RunWith(JUnit4.class) public class SecurityConfigurationTest { /** * Test that default security settings meet minimum security requirements */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.1K bytes - Viewed (0) -
tests/test_security_http_basic_realm.py
from base64 import b64encode from fastapi import FastAPI, Security from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.testclient import TestClient app = FastAPI() security = HTTPBasic(realm="simple") @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Security(security)): return {"username": credentials.username, "password": credentials.password} client = TestClient(app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt
import java.io.IOException import java.security.KeyStore import java.security.SecureRandom import java.security.Security import javax.net.ssl.KeyManagerFactory import javax.net.ssl.KeyStoreBuilderParameters import javax.net.ssl.SSLContext import javax.net.ssl.X509ExtendedKeyManager import javax.security.auth.callback.Callback import javax.security.auth.callback.CallbackHandler import javax.security.auth.callback.PasswordCallback
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 4.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java
} /** * Gets the owner group SID of this security descriptor. * * @return the security identifier of the owner group */ public final SID getOwnerGroupSid() { return this.ownerGroupSid; } /** * Gets the owner user SID of this security descriptor. * * @return the security identifier of the owner user */ public final SID getOwnerUserSid() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
# Simple OAuth2 with Password and Bearer { #simple-oauth2-with-password-and-bearer } Now let's build from the previous chapter and add the missing parts to have a complete security flow. ## Get the `username` and `password` { #get-the-username-and-password } We are going to use **FastAPI** security utilities to get the `username` and `password`.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 9.4K bytes - Viewed (0) -
cmd/sts-datatypes.go
// MinIO API requests. type AssumeRoleResult struct { // The identifiers for the temporary security credentials that the operation // returns. AssumedRoleUser AssumedRoleUser `xml:",omitempty"` // The temporary security credentials, which include an access key ID, a secret // access key, and a security (or session) token. // // Note: The size of the security token that STS APIs return is not fixed. WeRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 27 00:58:09 UTC 2022 - 9.9K bytes - Viewed (0) -
tests/test_security_http_base_description.py
from fastapi import FastAPI, Security from fastapi.security.http import HTTPAuthorizationCredentials, HTTPBase from fastapi.testclient import TestClient app = FastAPI() security = HTTPBase(scheme="Other", description="Other Security Scheme") @app.get("/users/me") def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)): return {"scheme": credentials.scheme, "credentials": credentials.credentials}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 24 19:03:06 UTC 2025 - 2K bytes - Viewed (0) -
docs/pt/docs/advanced/security/oauth2-scopes.md
{* ../../docs_src/security/tutorial005_an_py310.py hl[5,9,13,47,65,106,108:116,122:126,130:136,141,157] *} Agora vamos revisar essas mudanças passo a passo. ## Esquema de segurança OAuth2 { #oauth2-security-scheme }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 14.9K bytes - Viewed (0) -
docs/en/docs/reference/dependencies.md
But when you want to also declare OAuth2 scopes, you can use `Security()` instead of `Depends()`. You can import `Security()` directly from `fastapi`: ```python from fastapi import Security ```
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 671 bytes - Viewed (0)