- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 87 for scope (1.8 sec)
-
docs/em/docs/tutorial/security/simple-oauth2.md
& ๐ ๐ฝ ๐ท ๐ช โ๏ธ ๐ ๐ ๐ ๐ ๐. โ๏ธ ๐ณ *โก ๐ ๏ธ*, ๐ฅ ๐ช โ๏ธ ๐ ๐ ๐ โฎ๏ธ ๐ (& ๐ช, ๐ผ, โ๏ธ ๐ ๏ธ ๐ ๏ธ ๐งพ โ๏ธ). ๐ ๐ต๐ธ ๐ `username` & `password` ๐ ๐จ ๐จ ๐ฝ (, ๐ โโ ๐ป ๐ฅ). ### `scope` ๐ ๐ฌ ๐ ๐ฉโ๐ป ๐ช ๐จ โ1๏ธโฃ ๐จ ๐ "`scope`". ๐จ ๐ ๐ `scope` (โญ), โ๏ธ โซ๏ธ ๐ค ๐ ๐ป โฎ๏ธ "โ" ๐ ๐. ๐ "โ" ๐ป (๐ต ๐). ๐ซ ๐ โ๏ธ ๐ฃ ๐ฏ ๐โโ โ, ๐ผ: * `users:read` โ๏ธ `users:write` โ ๐ผ. * `instagram_basic` โ๏ธ ๐ฑ๐ / ๐ฑ๐.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 8.9K bytes - Viewed (0) -
docs/em/docs/how-to/custom-request-and-route.md
```Python hl_lines="18-26" {!../../../docs_src/custom_request_and_route/tutorial001.py!} ``` !!! note "๐ก โน" `Request` โ๏ธ `request.scope` ๐ข, ๐ ๐ `dict` โ ๐ ๐ ๐จ. `Request` โ๏ธ `request.receive`, ๐ ๐ข "๐จ" ๐ช ๐จ. `scope` `dict` & `receive` ๐ข ๐ฏโโ๏ธ ๐ ๐ซ ๐ง. & ๐ 2๏ธโฃ ๐, `scope` & `receive`, โซ๏ธโ ๐ช โ ๐ `Request` ๐.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.6K bytes - Viewed (0) -
docs/de/docs/advanced/security/oauth2-scopes.md
* Selbst keine erforderlichen Scopes. * Eine Abhรคngigkeit, die `oauth2_scheme` verwendet. * Einen `security_scopes`-Parameter vom Typ `SecurityScopes`: * Dieser `security_scopes`-Parameter hat ein Attribut `scopes` mit einer `list`e, die alle oben deklarierten Scopes enthรคlt, sprich:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:08 GMT 2024 - 22.8K bytes - Viewed (0) -
tests/test_security_oauth2_optional.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/en/docs/advanced/security/oauth2-scopes.md
* No scopes required by itself. * A dependency using `oauth2_scheme`. * A `security_scopes` parameter of type `SecurityScopes`: * This `security_scopes` parameter has a property `scopes` with a `list` containing all these scopes declared above, so:
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 21:21:35 GMT 2024 - 20.5K bytes - Viewed (0) -
tests/test_dependency_cache.py
@app.get("/scope-counter") async def get_scope_counter( count: int = Security(dep_counter), scope_count_1: int = Security(dep_counter, scopes=["scope"]), scope_count_2: int = Security(dep_counter, scopes=["scope"]), ): return { "counter": count, "scope_counter_1": scope_count_1, "scope_counter_2": scope_count_2, } client = TestClient(app)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Aug 23 13:30:24 GMT 2022 - 2.7K bytes - Viewed (0) -
tests/test_tutorial/test_events/test_tutorial002.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient @pytest.fixture(name="app", scope="module") def get_app(): with pytest.warns(DeprecationWarning): from docs_src.events.tutorial002 import app yield app def test_events(app: FastAPI): with TestClient(app) as client: response = client.get("/items/") assert response.status_code == 200, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Oct 18 12:36:40 GMT 2023 - 1.4K bytes - Viewed (0) -
docs/en/docs/reference/websockets.md
::: fastapi.WebSocket options: members: - scope - app - url - base_url - headers - query_params - path_params - cookies - client - state
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 1.6K bytes - Viewed (0) -
docs_src/security/tutorial005_py310.py
raise credentials_exception token_scopes = payload.get("scopes", []) token_data = TokenData(scopes=token_scopes, username=username) except (JWTError, ValidationError): raise credentials_exception user = get_user(fake_users_db, username=token_data.username) if user is None: raise credentials_exception for scope in security_scopes.scopes: if scope not in token_data.scopes:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.1K bytes - Viewed (0) -
docs_src/security/tutorial005_an_py310.py
raise credentials_exception token_scopes = payload.get("scopes", []) token_data = TokenData(scopes=token_scopes, username=username) except (JWTError, ValidationError): raise credentials_exception user = get_user(fake_users_db, username=token_data.username) if user is None: raise credentials_exception for scope in security_scopes.scopes: if scope not in token_data.scopes:
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.2K bytes - Viewed (0)