- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 486 for token5 (0.07 seconds)
-
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
// Security Buffer Length assertEquals(token.length, SMBUtil.readInt2(buffer, bodyOffset + 14)); // Previous Session ID assertEquals(previousSessionId, SMBUtil.readInt8(buffer, bodyOffset + 16)); // Token content byte[] actualToken = new byte[token.length]; System.arraycopy(buffer, securityBufferOffset, actualToken, 0, token.length); assertArrayEquals(token, actualToken);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 21.2K bytes - Click Count (0) -
docs_src/app_testing/app_b_py310/test_main.py
def test_read_nonexistent_item(): response = client.get("/items/baz", headers={"X-Token": "coneofsilence"}) assert response.status_code == 404 assert response.json() == {"detail": "Item not found"} def test_create_item(): response = client.post( "/items/", headers={"X-Token": "coneofsilence"},
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 1.8K bytes - Click Count (0) -
docs/es/docs/tutorial/security/first-steps.md
Si no ve un header `Authorization`, o el valor no tiene un token `Bearer `, responderá directamente con un error de código de estado 401 (`UNAUTHORIZED`). Ni siquiera tienes que verificar si el token existe para devolver un error. Puedes estar seguro de que si tu función se ejecuta, tendrá un `str` en ese token. Puedes probarlo ya en los docs interactivos:
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:15:55 GMT 2026 - 8.8K bytes - Click Count (0) -
docs/pt/docs/tutorial/security/first-steps.md
Se não houver um header `Authorization`, ou se o valor não tiver um token `Bearer `, ele responderá diretamente com um erro de status 401 (`UNAUTHORIZED`). Você nem precisa verificar se o token existe para retornar um erro. Você pode ter certeza de que, se sua função for executada, ela terá uma `str` nesse token.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 18:20:43 GMT 2026 - 8.7K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosPacAuthData.java
/** * Constructs KerberosPacAuthData from token bytes. * * @param token the PAC token bytes * @param keys map of Kerberos keys indexed by key type * @throws PACDecodingException if PAC decoding fails */ public KerberosPacAuthData(byte[] token, Map<Integer, KerberosKey> keys) throws PACDecodingException { this.pac = new Pac(token, keys); } /** * Returns the PAC object.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.6K bytes - Click Count (0) -
docs_src/security/tutorial005_an_py310.py
): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user") return current_user @app.post("/token") async def login_for_access_token( form_data: Annotated[OAuth2PasswordRequestForm, Depends()], ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 18:10:35 GMT 2026 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/AccessTokenTests.java
String token = JsonPath.from(response).get("response.setting.token"); checkGetMethod(requestBody, ITEM_ENDPOINT_SUFFIX + "/" + id).then() .body("response." + ITEM_ENDPOINT_SUFFIX + ".name", equalTo(name)) .body("response." + ITEM_ENDPOINT_SUFFIX + ".token", equalTo(token)); } @Test void crudTest() { testCreate();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jun 12 02:18:38 GMT 2025 - 3.7K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer.py
from inline_snapshot import snapshot app = FastAPI() oauth2_scheme = OAuth2AuthorizationCodeBearer( authorizationUrl="authorize", tokenUrl="token", auto_error=True ) @app.get("/items/") async def read_items(token: str | None = Security(oauth2_scheme)): return {"token": token} client = TestClient(app) def test_no_token(): response = client.get("/items")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 2.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/kuromoji/CreateForm.java
@ValidateTypeFailure public Integer crudMode; /** Token (word) to be added to the dictionary */ @Required @Size(max = 1000) public String token; /** Segmentation information for the token */ @Required @Size(max = 1000) public String segmentation; /** Reading (pronunciation) of the token in katakana */ @Required @Size(max = 1000) public String reading;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 2K bytes - Click Count (0) -
docs/ko/docs/tutorial/security/oauth2-jwt.md
# 패스워드(해싱 포함)를 사용하는 OAuth2, JWT 토큰을 사용하는 Bearer { #oauth2-with-password-and-hashing-bearer-with-jwt-tokens } 모든 보안 흐름을 구성했으므로, 이제 <abbr title="JSON 웹 토큰">JWT</abbr> 토큰과 안전한 패스워드 해싱을 사용해 애플리케이션을 실제로 안전하게 만들겠습니다. 이 코드는 실제로 애플리케이션에서 사용할 수 있으며, 패스워드 해시를 데이터베이스에 저장하는 등의 작업에 활용할 수 있습니다. 이전 장에서 멈춘 지점부터 시작해 내용을 확장해 나가겠습니다. ## JWT 알아보기 { #about-jwt } JWT는 "JSON Web Tokens"를 의미합니다. JSON 객체를 공백이 없는 길고 밀집된 문자열로 부호화하는 표준입니다. 다음과 같은 형태입니다: ```Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 14:06:26 GMT 2026 - 13K bytes - Click Count (0)