Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 157 for Scopes (0.05 sec)

  1. docs/en/docs/advanced/security/oauth2-scopes.md

    For this, we use `security_scopes.scopes`, that contains a `list` with all these scopes as `str`.
    
    {* ../../docs_src/security/tutorial005_an_py310.py hl[129:135] *}
    
    ## Dependency tree and scopes
    
    Let's review again this dependency tree and the scopes.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java

        private Set<String> scopes;
    
        /**
         * Create a new filter with the specified scopes and their implied scopes enabled.
         *
         * @param scopes The scopes to enable, along with all implied scopes, may be {@code null}.
         */
        public CumulativeScopeArtifactFilter(Collection<String> scopes) {
            this.scopes = new HashSet<>();
    
            addScopes(scopes);
        }
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven3ScopeManagerConfiguration.java

    import static org.eclipse.aether.impl.scope.BuildScopeQuery.select;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.singleton;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.union;
    
    /**
     * Maven3 scope configurations. Configures scope manager to support Maven3 scopes.
     * <p>
     * This manager supports the old Maven 3 dependency scopes.
     *
     * @since 2.0.0
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/security/oauth2-jwt.md

    <img src="/img/tutorial/security/image10.png">
    
    /// note
    
    Notice the header `Authorization`, with a value that starts with `Bearer `.
    
    ///
    
    ## Advanced usage with `scopes`
    
    OAuth2 has the notion of "scopes".
    
    You can use them to add a specific set of permissions to a JWT token.
    
    Then you can give this token to a user directly or a third party, to interact with your API with a set of restrictions.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:45:10 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven4ScopeManagerConfiguration.java

    import static org.eclipse.aether.impl.scope.BuildScopeQuery.select;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.singleton;
    import static org.eclipse.aether.impl.scope.BuildScopeQuery.union;
    
    /**
     * Maven4 scope configurations. Configures scope manager to support Maven4 scopes.
     * <p>
     * This manager supports all the new Maven 4 dependency scopes defined in {@link DependencyScope}.
     *
     * @since 2.0.0
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. fastapi/param_functions.py

                directly.
                """
            ),
        ] = None,
        *,
        scopes: Annotated[
            Optional[Sequence[str]],
            Doc(
                """
                OAuth2 scopes required for the *path operation* that uses this Security
                dependency.
    
                The term "scope" comes from the OAuth2 specification, it seems to be
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 23 18:30:18 UTC 2024
    - 62.5K bytes
    - Viewed (0)
  9. 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 Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. docs/en/docs/how-to/conditional-openapi.md

    * Never store plaintext passwords, only password hashes.
    * Implement and use well-known cryptographic tools, like Passlib and JWT tokens, etc.
    * Add more granular permission controls with OAuth2 scopes where needed.
    * ...etc.
    
    Nevertheless, you might have a very specific use case where you really need to disable the API docs for some environment (e.g. for production) or depending on configurations from environment variables.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:21:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top