Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 686 for scope2 (0.48 sec)

  1. docs_src/dependencies/tutorial008e_py39.py

    app = FastAPI()
    
    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: str = Depends(get_username, scope="function")):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 289 bytes
    - Viewed (0)
  2. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/CompatibilityFixStrategyTest.java

                                <scope>test</scope>
                            </dependency>
                            <dependency>
                                <groupId>junit</groupId>
                                <artifactId>junit</artifactId>
                                <version>4.13.2</version>
                                <scope>test</scope>
                            </dependency>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  3. tests/test_security_scopes.py

            return "user"
    
        app = FastAPI()
    
        @app.get("/")
        def endpoint(
            db: Annotated[str, Depends(get_db)],
            user: Annotated[str, Security(get_user, scopes=["read"])],
        ):
            return {"db": db}
    
        return app
    
    
    @pytest.fixture(name="client")
    def client_fixture(app: FastAPI):
        return TestClient(app)
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1006 bytes
    - Viewed (0)
  4. docs/ru/llm-prompt.md

    * declare: объявить
    * have the next best performance, after: быть на следующем месте по производительности после
    * timing attack: тайминговая атака (clarify `атака по времени` if needed)
    * OAuth2 scope: OAuth2 scope (clarify `область` if needed)
    * TLS Termination Proxy: прокси-сервер TSL-терминации
    * utilize (resources): использовать
    * сontent: содержимое (or `контент`)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Oct 06 11:09:58 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilterTest.java

    import static org.junit.jupiter.api.Assertions.assertTrue;
    
    /**
     * Tests {@link ScopeArtifactFilter}.
     *
     */
    class ScopeArtifactFilterTest {
    
        private Artifact newArtifact(String scope) {
            return new DefaultArtifact("g", "a", "1.0", scope, "jar", "", null);
        }
    
        @Test
        void testIncludeCompile() {
            ScopeArtifactFilter filter = new ScopeArtifactFilter(Artifact.SCOPE_COMPILE);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. docs_src/behind_a_proxy/tutorial003_py39.py

        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 405 bytes
    - Viewed (0)
  7. docs_src/behind_a_proxy/tutorial004_py39.py

        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 437 bytes
    - Viewed (0)
  8. docs_src/dependencies/tutorial008e_an_py39.py

    
    def get_username():
        try:
            yield "Rick"
        finally:
            print("Cleanup up before response is sent")
    
    
    @app.get("/users/me")
    def get_user_me(username: Annotated[str, Depends(get_username, scope="function")]):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 03 10:12:49 UTC 2025
    - 329 bytes
    - Viewed (0)
  9. docs/en/docs/reference/dependencies.md

    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    For many scenarios, you can handle security (authorization, authentication, etc.) with dependencies, using `Depends()`.
    
    But when you want to also declare OAuth2 scopes, you can use `Security()` instead of `Depends()`.
    
    You can import `Security()` directly from `fastapi`:
    
    ```python
    from fastapi import Security
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 671 bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Lifecycle.java

            }
        }
    
        interface DependenciesPointer extends Pointer {
            /**
             * Returns the dependency scope this pointer applies to.
             *
             * @return the dependency scope, or "all" if not specified
             */
            String scope(); // default: all
    
            /**
             * Returns the type of pointer, which is always DEPENDENCIES for a DependenciesPointer.
             *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top