Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 148 for escopos (0.04 sec)

  1. tests/test_dependency_paramless.py

        return {"token": credentials, "scopes": security_scopes.scopes}
    
    
    @app.get("/get-credentials")
    def get_credentials(
        credentials: Annotated[dict, Security(process_auth, scopes=["a", "b"])],
    ):
        return credentials
    
    
    @app.get(
        "/parameterless-with-scopes",
        dependencies=[Security(process_auth, scopes=["a", "b"])],
    )
    def get_parameterless_with_scopes():
        return {"status": "ok"}
    
    
    @app.get(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  2. tests/test_security_oauth2_optional.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    reusable_oauth2 = OAuth2(
        flows={
            "password": {
                "tokenUrl": "token",
                "scopes": {"read:users": "Read the users", "write:users": "Create users"},
            }
        },
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. .github/release-drafter.yml

      - title: '🐛 Bug Fixes'
        labels:
          - 'fix'
          - 'bugfix'
          - 'bug'
      - title: '🧰 Maintenance'
        label: 'chore'
    change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
    change-title-escapes: '\<*_&'
    template: |
      ## Changes
    
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed Oct 09 11:31:04 UTC 2024
    - 428 bytes
    - Viewed (0)
  4. 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)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  5. api/maven-api-di/src/main/java/org/apache/maven/api/di/Scope.java

    /**
     * Meta-annotation that marks other annotations as scope annotations.
     * <p>
     * Scopes define the lifecycle and visibility of objects in the dependency injection
     * system. Custom scope annotations should be annotated with {@code @Scope}.
     * <p>
     * Built-in scopes include:
     * <ul>
     *   <li>{@link Singleton} - One instance per container</li>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Jan 30 23:28:59 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/html/HtmlEscapers.java

     * use of HTML templating systems.
     *
     * @author Sven Mawson
     * @author David Beaumont
     * @since 15.0
     */
    @GwtCompatible
    public final class HtmlEscapers {
      /**
       * Returns an {@link Escaper} instance that escapes HTML metacharacters as specified by <a
       * href="http://www.w3.org/TR/html4/">HTML 4.01</a>. The resulting strings can be used both in
       * attribute values and in most elements' text contents, provided that the HTML
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
        assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>"));
    
        // Test all escapes.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 22:03:28 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. tests/scopes_test.go

    	DB.Create(&users)
    
    	var users1, users2, users3 []User
    	DB.Scopes(NameIn1And2).Find(&users1)
    	if len(users1) != 2 {
    		t.Errorf("Should found two users's name in 1, 2, but got %v", len(users1))
    	}
    
    	DB.Scopes(NameIn1And2, NameIn2And3).Find(&users2)
    	if len(users2) != 1 {
    		t.Errorf("Should found one user's name is 2, but got %v", len(users2))
    	}
    
    	DB.Scopes(NameIn([]string{users[0].Name, users[2].Name})).Find(&users3)
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/ProjectDependenciesResolver.java

         * @param scopesToCollect The dependency scopes that should be collected, may be {@code null}.
         * @param scopesToResolve The dependency scopes that should be collected and also resolved, may be {@code null}.
         * @param session         The current build session, must not be {@code null}.
         * @return The transitive dependencies of the specified project that match the requested scopes, never {@code null}.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. docs/en/docs/reference/security/index.md

    # Security Tools
    
    When you need to declare dependencies with OAuth2 scopes you use `Security()`.
    
    But you still need to define what is the dependable, the callable that you pass as a parameter to `Depends()` or `Security()`.
    
    There are multiple tools that you can use to create those dependables, and they get integrated into OpenAPI so they are shown in the automatic docs UI, they can be used by automatically generated clients and SDKs, etc.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top