- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 3,536 for fromP2 (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/org/codelibs/fess/app/web/base/login/SpnegoCredential.java
* Negotiation Protocol) authentication. It contains the username extracted from the * SPNEGO authentication process, typically from a Kerberos ticket. */ public class SpnegoCredential implements LoginCredential, FessCredential { /** The username extracted from SPNEGO authentication. */ private final String username; /**Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 1.9K bytes - Click Count (1) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java
} void addEdge(Vertex from, Vertex to) throws CycleDetectedException { from.children.add(to); to.parents.add(from); List<String> cycle = findCycle(to); if (cycle != null) { // remove edge which introduced cycle removeEdge(from, to); throw new CycleDetectedException(Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.6K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial010.py
from typing import Annotated, Any from unittest.mock import Mock, patch from fastapi import Depends, FastAPI from fastapi.testclient import TestClient from docs_src.dependencies.tutorial010_py39 import get_db def test_get_db(): app = FastAPI() @app.get("/") def read_root(c: Annotated[Any, Depends(get_db)]): return {"c": str(c)} client = TestClient(app) dbsession_mock = Mock()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 688 bytes - Click Count (0) -
docs/en/docs/reference/dependencies.md
## `Depends()` Dependencies are handled mainly with the special function `Depends()` that takes a callable. Here is the reference for it and its parameters. You can import it directly from `fastapi`: ```python from fastapi import Depends ``` ::: fastapi.Depends ## `Security()` For many scenarios, you can handle security (authorization, authentication, etc.) with dependencies, using `Depends()`.
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 671 bytes - Click Count (0) -
docs_src/custom_request_and_route/tutorial002_py39.py
from typing import Callable from fastapi import Body, FastAPI, HTTPException, Request, Response from fastapi.exceptions import RequestValidationError from fastapi.routing import APIRoute class ValidationErrorLoggingRoute(APIRoute): def get_route_handler(self) -> Callable: original_route_handler = super().get_route_handler() async def custom_route_handler(request: Request) -> Response: try:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 10 08:55:32 GMT 2025 - 926 bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java
class UpgradePathValidationTests { @ParameterizedTest(name = "from {0} to {1}") @MethodSource("provideValidPathUpgradeVersions") @DisplayName("should validate upgrade path") void shouldValidateUpgradePath(String from, String to) { assertTrue(ModelVersionUtils.canUpgrade(from, to)); } private static Stream<Arguments> provideValidPathUpgradeVersions() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 19.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
* @param to the target authenticator * @param from the source authenticator */ public static void cloneInternal(Kerb5Authenticator to, Kerb5Authenticator from) { NtlmPasswordAuthenticator.cloneInternal(to, from); to.setUser(from.getUser()); to.setRealm(from.getRealm()); to.setService(from.getService()); to.setLifeTime(from.getLifeTime());Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13.2K bytes - Click Count (0) -
tests/test_security_http_basic_optional.py
from base64 import b64encode from typing import Optional from fastapi import FastAPI, Security from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.testclient import TestClient app = FastAPI() security = HTTPBasic(auto_error=False) @app.get("/users/me") def read_current_user(credentials: Optional[HTTPBasicCredentials] = Security(security)): if credentials is None:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.6K bytes - Click Count (0) -
fastapi/security/oauth2.py
from typing import Annotated, Any, Optional, Union, cast from annotated_doc import Doc from fastapi.exceptions import HTTPException from fastapi.openapi.models import OAuth2 as OAuth2Model from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel from fastapi.param_functions import Form from fastapi.security.base import SecurityBase from fastapi.security.utils import get_authorization_scheme_param from starlette.requests import Request
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 22K bytes - Click Count (0) -
tests/test_validate_response_dataclass.py
from typing import Optional import pytest from fastapi import FastAPI from fastapi.exceptions import ResponseValidationError from fastapi.testclient import TestClient from pydantic.dataclasses import dataclass app = FastAPI() @dataclass class Item: name: str price: Optional[float] = None owner_ids: Optional[list[int]] = None @app.get("/items/invalid", response_model=Item) def get_invalid():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.2K bytes - Click Count (0)