- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 135 for Feyrer (0.19 sec)
-
docs_src/security/tutorial003_an.py
if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid authentication credentials", headers={"WWW-Authenticate": "Bearer"}, ) return user async def get_current_active_user( current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled:
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
docs_src/security/tutorial003_an_py310.py
if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid authentication credentials", headers={"WWW-Authenticate": "Bearer"}, ) return user async def get_current_active_user( current_user: Annotated[User, Depends(get_current_user)], ): if current_user.disabled:
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 2.5K bytes - Viewed (0) -
docs_src/security/tutorial003_py310.py
if not user: raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid authentication credentials", headers={"WWW-Authenticate": "Bearer"}, ) return user async def get_current_active_user(current_user: User = Depends(get_current_user)): if current_user.disabled: raise HTTPException(status_code=400, detail="Inactive user")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 2.4K bytes - Viewed (0) -
docs/metrics/prometheus/README.md
##### Cluster ```yaml scrape_configs: - job_name: minio-job bearer_token: <secret> metrics_path: /minio/v2/metrics/cluster scheme: http static_configs: - targets: ['localhost:9000'] ``` ##### Bucket centric ```yaml - job_name: minio-job-bucket bearer_token: <secret> metrics_path: /minio/v2/metrics/bucket scheme: http static_configs:
Plain Text - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 12 15:49:30 GMT 2024 - 7.1K bytes - Viewed (0) -
docs_src/security/tutorial004_an_py310.py
headers={"WWW-Authenticate": "Bearer"}, ) access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES) access_token = create_access_token( data={"sub": user.username}, expires_delta=access_token_expires ) return Token(access_token=access_token, token_type="bearer") @app.get("/users/me/", response_model=User) async def read_users_me(
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4.1K bytes - Viewed (0) -
docs/em/docs/tutorial/security/index.md
โ๏ธ ๐ซ, ๐ ๐ช โ ๐ ๐ ๐ซ ๐ฉ-โ๏ธ ๐งฐ, ๐ ๐ ๐ ๐งพ โ๏ธ. ๐ ๐ฌ ๐ ๐โโ โ: * `apiKey`: ๐ธ ๐ฏ ๐ ๐ ๐ช ๐ โช๏ธโก๏ธ: * ๐ข ๐ข. * ๐. * ๐ช. * `http`: ๐ฉ ๐บ๐ธ๐ ๐ค โ๏ธ, ๐: * `bearer`: ๐ `Authorization` โฎ๏ธ ๐ฒ `Bearer ` โ ๐ค. ๐ ๐ โช๏ธโก๏ธ Oauth2๏ธโฃ. * ๐บ๐ธ๐ ๐ฐ ๐ค. * ๐บ๐ธ๐ ๐ฐ, โ๏ธ. * `oauth2`: ๐ Oauth2๏ธโฃ ๐ ๐ต ๐โโ (๐ค "๐ง"). * ๐ ๐ซ ๐ง โ ๐ โณ 2๏ธโฃ.0๏ธโฃ ๐ค ๐โ๐ฆบ (๐ ๐บ๐ธ๐, ๐ฑ๐, ๐ฑ๐, ๐, โ๏ธ): * `implicit`
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Jun 24 14:47:15 GMT 2023 - 3.5K bytes - Viewed (0) -
docs/em/docs/tutorial/security/first-steps.md
* ๐ธ ๐ช ๐ ๐ค ๐ ๐ฑ. * ๐ฉโ๐ป ๐ ๐ธ ๐ถ โ1๏ธโฃ ๐ ๐ธ ๐ธ ๐ฑ. * ๐ธ ๐ช โ ๐ ๐ฝ โช๏ธโก๏ธ ๐ ๏ธ. * โ๏ธ โซ๏ธ ๐ช ๐ค ๐ ๐ฏ ๐. * , ๐ โฎ๏ธ ๐ ๐ ๏ธ, โซ๏ธ ๐จ ๐ `Authorization` โฎ๏ธ ๐ฒ `Bearer ` โ ๐ค. * ๐ฅ ๐ค ๐ `foobar`, ๐ `Authorization` ๐ ๐: `Bearer foobar`. ## **FastAPI**'โ `OAuth2PasswordBearer` **FastAPI** ๐ ๐ ๐งฐ, ๐ ๐ โ, ๐ ๏ธ ๐ซ ๐โโ โ.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 6.8K bytes - Viewed (0) -
docs/en/docs/tutorial/security/first-steps.md
* But it needs authentication for that specific endpoint. * So, to authenticate with our API, it sends a header `Authorization` with a value of `Bearer ` plus the token. * If the token contains `foobar`, the content of the `Authorization` header would be: `Bearer foobar`. ## **FastAPI**'s `OAuth2PasswordBearer` **FastAPI** provides several tools, at different levels of abstraction, to implement these security features.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 8.9K bytes - Viewed (0) -
internal/config/lambda/target/webhook.go
// <Key> <Token> like format, if this is // already present we can blindly use the // authToken as is instead of adding 'Bearer' tokens := strings.Fields(target.args.AuthToken) switch len(tokens) { case 2: req.Header.Set("Authorization", target.args.AuthToken) case 1: req.Header.Set("Authorization", "Bearer "+target.args.AuthToken) } req.Header.Set("Content-Type", "application/json")
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Nov 17 20:02:26 GMT 2023 - 6.7K bytes - Viewed (0) -
tests/test_security_oauth2.py
return current_user client = TestClient(app) def test_security_oauth2(): response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"}) assert response.status_code == 200, response.text assert response.json() == {"username": "Bearer footokenbar"} def test_security_oauth2_password_other_header(): response = client.get("/users/me", headers={"Authorization": "Other footokenbar"})
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.7K bytes - Viewed (0)