Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 593 for cscopes (0.06 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_tutorial/test_security/test_tutorial003.py

                                "title": "Password",
                                "type": "string",
                                "format": "password",
                            },
                            "scope": {"title": "Scope", "type": "string", "default": ""},
                            "client_id": {
                                "title": "Client Id",
                                "anyOf": [{"type": "string"}, {"type": "null"}],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java

            this.scopedVertices = scopedVertices;
    
            // scoped graph is versioned by definition
            if (scopedVertices) {
                versionedVertices = true;
            }
        }
    
        public ArtifactScopeEnum getScope() {
            return scope;
        }
    
        public void setScope(ArtifactScopeEnum scope) {
            this.scope = scope;
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/NameTest.java

            byte[] dst = new byte[100];
    
            int length = name.writeWireFormat(dst, 0);
    
            // Scope should start at position 33 with a length byte (not '.')
            // The first byte after encoding would be the length of "scope"
            assertEquals(5, dst[33]); // Length of "scope"
    
            // Verify total length includes scope
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenSessionBuilderSupplier.java

    import org.eclipse.aether.impl.scope.InternalScopeManager;
    import org.eclipse.aether.internal.impl.scope.ManagedDependencyContextRefiner;
    import org.eclipse.aether.internal.impl.scope.ManagedScopeDeriver;
    import org.eclipse.aether.internal.impl.scope.ManagedScopeSelector;
    import org.eclipse.aether.internal.impl.scope.OptionalDependencySelector;
    import org.eclipse.aether.internal.impl.scope.ScopeDependencySelector;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 09:40:15 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. impl/maven-core/src/test/java/org/apache/maven/session/scope/SessionScopeProxyTest.java

        }
    
        @Named
        static class MySingletonBean {
            @Inject
            @Named("scoped")
            BeanItf myBean;
    
            @Inject
            @Named("another")
            BeanItf2 anotherBean;
        }
    
        @Named
        static class MySingletonBean2 {
            @Inject
            @Named("scoped")
            MySessionScopedBean myBean;
    
            @Inject
            @Named("another")
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  9. docs/zh/docs/tutorial/security/simple-oauth2.md

    但由于这种用例很常见,FastAPI 为了简便,就直接提供了对它的支持。
    
    ///
    
    ### 使用表单数据
    
    /// tip | 提示
    
    `OAuth2PasswordRequestForm` 类依赖项的实例没有以空格分隔的长字符串属性 `scope`,但它支持 `scopes` 属性,由已发送的 scope 字符串列表组成。
    
    本例没有使用 `scopes`,但开发者也可以根据需要使用该属性。
    
    ///
    
    现在,即可使用表单字段 `username`,从(伪)数据库中获取用户数据。
    
    如果不存在指定用户,则返回错误消息,提示**用户名或密码错误**。
    
    本例使用 `HTTPException` 异常显示此错误:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_security/test_tutorial005.py

        return mod
    
    
    def get_access_token(
        *, username="johndoe", password="secret", scope=None, client: TestClient
    ):
        data = {"username": username, "password": password}
        if scope:
            data["scope"] = scope
        response = client.post("/token", data=data)
        content = response.json()
        access_token = content.get("access_token")
        return access_token
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top