Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 704 for scope (0.43 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven3ScopeManagerConfiguration.java

    import org.eclipse.aether.impl.scope.InternalScopeManager;
    import org.eclipse.aether.impl.scope.ScopeManagerConfiguration;
    import org.eclipse.aether.internal.impl.scope.ScopeManagerDump;
    import org.eclipse.aether.scope.DependencyScope;
    import org.eclipse.aether.scope.ResolutionScope;
    
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.all;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.byBuildPath;
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. docs_src/security/tutorial005_py39.py

            username: str = payload.get("sub")
            if username is None:
                raise credentials_exception
            scope: str = payload.get("scope", "")
            token_scopes = scope.split(" ")
            token_data = TokenData(scopes=token_scopes, username=username)
        except (InvalidTokenError, ValidationError):
            raise credentials_exception
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 02:57:38 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. fastapi/security/oauth2.py

            data = {}
            data["scopes"] = []
            for scope in form_data.scopes:
                data["scopes"].append(scope)
            if form_data.client_id:
                data["client_id"] = form_data.client_id
            if form_data.client_secret:
                data["client_secret"] = form_data.client_secret
            return data
        ```
    
        Note that for OAuth2 the scope `items:read` is a single scope in an opaque string.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/resources/pom.xml

          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>marmalade</groupId>
          <artifactId>marmalade-core</artifactId>
          <version>0.1</version>
          <type>jar</type>
          <scope>compile</scope>
        </dependency>
        <dependency>
          <groupId>marmalade</groupId>
          <artifactId>marmalade-el-ognl</artifactId>
          <version>0.1</version>
          <type>jar</type>
          <scope>compile</scope>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. impl/maven-core/src/test/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeTest.java

            MojoExecutionScope scope = new MojoExecutionScope();
    
            scope.enter();
    
            Object o1 = new Object();
            scope.seed(Object.class, o1);
            assertSame(o1, scope.scope(Key.get(Object.class), () -> null).get());
    
            scope.enter();
            Object o2 = new Object();
            scope.seed(Object.class, o2);
            assertSame(o2, scope.scope(Key.get(Object.class), () -> null).get());
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/NameServiceClientTest.java

            String scope = "testScope";
            when(nameServiceClient.getNbtByName(host, type, scope)).thenThrow(new UnknownHostException("Host not found"));
    
            // Act & Assert
            assertThrows(UnknownHostException.class, () -> nameServiceClient.getNbtByName(host, type, scope));
            verify(nameServiceClient, times(1)).getNbtByName(host, type, scope);
        }
    
        @Test
        void testGetNbtByName_String() throws UnknownHostException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScopeModule.java

        protected final MojoExecutionScope scope;
    
        public MojoExecutionScopeModule(MojoExecutionScope scope) {
            this.scope = scope;
        }
    
        @Override
        protected void configure() {
            bindScope(MojoExecutionScoped.class, scope);
            // bindScope(org.apache.maven.api.di.MojoExecutionScoped.class, scope);
            bind(MojoExecutionScope.class).toInstance(scope);
            bind(MavenProject.class)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/ArtifactScopeEnum.java

        };
    
        /**
         * scope relationship function. Used by the graph conflict resolution policies
         *
         * @param scope a scope
         * @return true is supplied scope is an inclusive sub-scope of current one.
         */
        public boolean encloses(ArtifactScopeEnum scope) {
            final ArtifactScopeEnum s = checkScope(scope);
    
            // system scope is historic only - and simple
            if (id == system.id) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. 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)
  10. tests/test_dependency_cache.py

    ):
        return {"counter": count, "subcounter": subcount}
    
    
    @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,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Aug 23 13:30:24 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top