- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 217 for me (0.13 sec)
-
tests/test_tutorial/test_security/test_tutorial005_an_py39.py
}, } }, "summary": "Read Users Me", "operationId": "read_users_me_users_me__get", "security": [{"OAuth2PasswordBearer": ["me"]}], } }, "/users/me/items/": { "get": { "responses": { "200": {
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py310.py
}, } }, "summary": "Read Users Me", "operationId": "read_users_me_users_me__get", "security": [{"OAuth2PasswordBearer": ["me"]}], } }, "/users/me/items/": { "get": { "responses": { "200": {
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.3K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
} } else if nsMatched { for _, me := range wh.ObjectSelector.MatchExpressions { switch me.Operator { case metav1.LabelSelectorOpDoesNotExist: v, ok := podLabels[me.Key] if ok { return fmt.Sprintf("Pod has %s=%s label, preventing injection", me.Key, v), false } case metav1.LabelSelectorOpNotIn: v, ok := podLabels[me.Key] if !ok { continue }
Go - Registered: Wed Mar 27 22:53:09 GMT 2024 - Last Modified: Thu Dec 14 02:11:31 GMT 2023 - 9.4K bytes - Viewed (0) -
tests/test_security_http_basic_optional.py
@app.get("/users/me") def read_current_user(credentials: Optional[HTTPBasicCredentials] = Security(security)): if credentials is None: return {"msg": "Create an account first"} return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret"))
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.6K bytes - Viewed (0) -
tests/test_security_http_basic_realm.py
app = FastAPI() security = HTTPBasic(realm="simple") @app.get("/users/me") def read_current_user(credentials: HTTPBasicCredentials = Security(security)): return {"username": credentials.username, "password": credentials.password} client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.6K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial006.py
client = TestClient(app) def test_security_http_basic(): response = client.get("/users/me", auth=("john", "secret")) assert response.status_code == 200, response.text assert response.json() == {"username": "john", "password": "secret"} def test_security_http_basic_no_credentials(): response = client.get("/users/me") assert response.json() == {"detail": "Not authenticated"}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.3K bytes - Viewed (0) -
tests/test_security_openid_connect_optional.py
return user @app.get("/users/me") def read_current_user(current_user: Optional[User] = Depends(get_current_user)): if current_user is None: return {"msg": "Create an account first"} return current_user client = TestClient(app) def test_security_oauth2(): response = client.get("/users/me", headers={"Authorization": "Bearer footokenbar"})
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.4K bytes - Viewed (0) -
tests/test_security_api_key_query.py
user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user client = TestClient(app) def test_security_api_key(): response = client.get("/users/me?key=secret") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 1.8K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_an.py
}, } }, "summary": "Read Users Me", "operationId": "read_users_me_users_me__get", "security": [{"OAuth2PasswordBearer": ["me"]}], } }, "/users/me/items/": { "get": { "responses": { "200": {
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 15.4K bytes - Viewed (0) -
tests/test_security_api_key_cookie_description.py
user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)): return current_user def test_security_api_key(): client = TestClient(app, cookies={"key": "secret"}) response = client.get("/users/me") assert response.status_code == 200, response.text assert response.json() == {"username": "secret"}
Python - Registered: Sun Mar 24 07:19:08 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 2.1K bytes - Viewed (0)