- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 567 for mytoken (0.04 sec)
-
docs/es/docs/tutorial/security/simple-oauth2.md
/// ## Devolver el token { #return-the-token } El response del endpoint `token` debe ser un objeto JSON. Debe tener un `token_type`. En nuestro caso, como estamos usando tokens "Bearer", el tipo de token debe ser "`bearer`". Y debe tener un `access_token`, con un string que contenga nuestro token de acceso.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 10.3K bytes - Viewed (0) -
docs_src/security/tutorial002_an_py310.py
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token") class User(BaseModel): username: str email: str | None = None full_name: str | None = None disabled: bool | None = None def fake_decode_token(token): return User( username=token + "fakedecoded", email="******@****.***", full_name="John Doe" ) async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 761 bytes - Viewed (0) -
.github/workflows/lock.yml
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Jan 30 03:27:43 UTC 2022 - 447 bytes - Viewed (0) -
cmd/batch-job-common-types_gen.go
case "Endpoint": z.Endpoint, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Endpoint") return } case "Token": z.Token, err = dc.ReadString() if err != nil { err = msgp.WrapError(err, "Token") return } default: err = dc.Skip() if err != nil { err = msgp.WrapError(err) return } } } return }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 21.9K bytes - Viewed (0) -
docs/pt/docs/tutorial/security/oauth2-jwt.md
Atualize `get_current_user` para receber o mesmo token de antes, mas desta vez, usando tokens JWT. Decodifique o token recebido, verifique-o e retorne o usuário atual. Se o token for inválido, retorne um erro HTTP imediatamente. {* ../../docs_src/security/tutorial004_an_py310.py hl[90:107] *} ## Atualize a *operação de rota* `/token` { #update-the-token-path-operation }Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Nov 12 16:23:57 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SSPContext.java
/** * Initializes the security context with the given token. * @param token the input token bytes * @param off offset into the token array * @param len length of token data * @return result token * @throws SmbException if an SMB protocol error occurs * @throws CIFSException if a general CIFS error occurs */ byte[] initSecContext(byte[] token, int off, int len) throws CIFSException; /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
docs_src/security/tutorial005_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: OAuth2PasswordRequestForm = Depends(), ) -> Token: user = authenticate_user(fake_users_db, form_data.username, form_data.password) if not user:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Sep 29 02:57:38 UTC 2025 - 5.2K bytes - Viewed (0) -
docs_src/security/tutorial001_an_py39.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: Annotated[str, Depends(oauth2_scheme)]):
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 309 bytes - Viewed (0) -
docs/sts/wso2.md
| aud | _string array_ | The token audience list. The client identifier of the OAuth clients that the JWT is intended for, is sent herewith. | | azp | _string_ | The authorized party for which the token is issued to. The client identifier of the OAuth client that the token is issued for, is sent herewith. |
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Aug 12 18:20:36 UTC 2025 - 8.7K bytes - Viewed (0) -
docs/es/docs/tutorial/header-params.md
Por ejemplo, para declarar un header de `X-Token` que puede aparecer más de una vez, puedes escribir: {* ../../docs_src/header_params/tutorial003_an_py310.py hl[9] *} Si te comunicas con esa *path operation* enviando dos headers HTTP como: ``` X-Token: foo X-Token: bar ``` El response sería como: ```JSON { "X-Token values": [ "bar", "foo" ] } ```Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Dec 16 16:33:45 UTC 2025 - 3.2K bytes - Viewed (0)