- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 486 for token5 (0.14 seconds)
-
src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java
} /** * Test parsing of {@link KerberosConstants#AUTH_DATA_PAC} with an invalid token. * Expects a {@link PACDecodingException} to be thrown. */ @Test void testParseAuthDataPacWithInvalidToken() { // GIVEN an invalid token for AUTH_DATA_PAC byte[] invalidToken = "invalid-pac-token".getBytes(); // WHEN parsing the auth data // THEN a PACDecodingException should be thrownCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.7K bytes - Click Count (0) -
docs_src/security/tutorial001_py310.py
from fastapi import Depends, FastAPI from fastapi.security import OAuth2PasswordBearer app = FastAPI() oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") @app.get("/items/") async def read_items(token: str = Depends(oauth2_scheme)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 269 bytes - Click Count (0) -
docs/de/docs/advanced/security/oauth2-scopes.md
Das ist derselbe Mechanismus, der verwendet wird, wenn Sie beim Anmelden mit Facebook, Google, GitHub, usw. Berechtigungen erteilen: <img src="/img/tutorial/security/image11.png"> ## JWT-Token mit Scopes { #jwt-token-with-scopes } Ändern Sie nun die Token-*Pfadoperation*, um die angeforderten Scopes zurückzugeben.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Mar 19 17:58:09 GMT 2026 - 15.7K bytes - Click Count (0) -
docs_src/security/tutorial003_an_py310.py
return UserInDB(**user_dict) def fake_decode_token(token): # This doesn't provide any security at all # Check the next version user = get_user(fake_users_db, token) return user async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): user = fake_decode_token(token) if not user: raise HTTPException(
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.5K bytes - Click Count (0) -
docs_src/security/tutorial004_an_py310.py
return encoded_jwt async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]): credentials_exception = HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Could not validate credentials", headers={"WWW-Authenticate": "Bearer"}, ) try: payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM]) username = payload.get("sub")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 18:10:35 GMT 2026 - 4.2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/accesstoken/SearchBody.java
import org.codelibs.fess.app.web.api.admin.BaseSearchBody; /** * Search request body for access token administration. * Extends BaseSearchBody with access token-specific search parameters. */ public class SearchBody extends BaseSearchBody { /** The access token ID to search for. */ public String id; /** * Default constructor for SearchBody. */ public SearchBody() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.1K bytes - Click Count (0) -
docs_src/dependencies/tutorial012_py310.py
from fastapi import Depends, FastAPI, Header, HTTPException async def verify_token(x_token: str = Header()): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: str = Header()): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 696 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/llm/LlmChatRequest.java
return this; } /** * Gets the maximum tokens for the response. * * @return the maximum tokens */ public Integer getMaxTokens() { return maxTokens; } /** * Sets the maximum tokens for the response. * * @param maxTokens the maximum tokens * @return this request for method chaining */Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 05 03:38:31 GMT 2026 - 6.4K bytes - Click Count (0) -
src/main/java/jcifs/smb/SpnegoContext.java
private static SpnegoToken getToken(final byte[] token, final int off, final int len) throws SpnegoException { byte[] b = new byte[len]; if (off == 0 && token.length == len) { b = token; } else { System.arraycopy(token, off, b, 0, len); } return getToken(b); } private static SpnegoToken getToken(final byte[] token) throws SpnegoException {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.5K bytes - Click Count (0) -
docs_src/request_forms_and_files/tutorial001_py310.py
from fastapi import FastAPI, File, Form, UploadFile app = FastAPI() @app.post("/files/") async def create_file( file: bytes = File(), fileb: UploadFile = File(), token: str = Form() ): return { "file_size": len(file), "token": token, "fileb_content_type": fileb.content_type,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 317 bytes - Click Count (0)