Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for enforce (0.32 sec)

  1. fastapi/security/oauth2.py

                    The OAuth2 spec says it is required and MUST be the fixed string
                    "password". Nevertheless, this dependency class is permissive and
                    allows not passing it. If you want to enforce it, use instead the
                    `OAuth2PasswordRequestFormStrict` dependency.
                    """
                ),
            ] = None,
            username: Annotated[
                str,
                Form(),
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  2. docs/en/docs/tutorial/first-steps.md

    And the more exotic ones:
    
    * `@app.options()`
    * `@app.head()`
    * `@app.patch()`
    * `@app.trace()`
    
    !!! tip
        You are free to use each operation (HTTP method) as you wish.
    
        **FastAPI** doesn't enforce any specific meaning.
    
        The information here is presented as a guideline, not a requirement.
    
        For example, when using GraphQL you normally perform all the actions using only `POST` operations.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/simple-oauth2.md

    * An optional `grant_type`.
    
    !!! tip
        The OAuth2 spec actually *requires* a field `grant_type` with a fixed value of `password`, but `OAuth2PasswordRequestForm` doesn't enforce it.
    
        If you need to enforce it, use `OAuth2PasswordRequestFormStrict` instead of `OAuth2PasswordRequestForm`.
    
    * An optional `client_id` (we don't need it for our example).
    * An optional `client_secret` (we don't need it for our example).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. docs/fr/docs/history-design-future.md

    De nombreux développeurs et équipes dépendent déjà de **FastAPI** pour leurs projets (y compris moi et mon équipe).
    
    Mais il y a encore de nombreuses améliorations et fonctionnalités à venir.
    
    **FastAPI** a un grand avenir devant lui.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/index.md

    This is very useful when you need to:
    
    * Have shared logic (the same code logic again and again).
    * Share database connections.
    * Enforce security, authentication, role requirements, etc.
    * And many other things...
    
    All these, while minimizing code repetition.
    
    ## First Steps
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  6. docs/fr/docs/async.md

    ```Python
    burgers = await get_burgers(2)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Mar 31 23:52:53 GMT 2024
    - 24K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params-str-validations.md

        The `Union` in `Union[str, None]` will allow your editor to give you better support and detect errors.
    
    ## Additional validation
    
    We are going to enforce that even though `q` is optional, whenever it is provided, **its length doesn't exceed 50 characters**.
    
    ### Import `Query` and `Annotated`
    
    To achieve that, first import:
    
    * `Query` from `fastapi`
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  8. docs/en/docs/deployment/docker.md

    Containers are mainly a tool to simplify the process of **building and deploying** an application, but they don't enforce a particular approach to handle these **deployment concepts**, and there are several possible strategies.
    
    The **good news** is that with each different strategy there's a way to cover all of the deployment concepts. 🎉
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 34K bytes
    - Viewed (0)
  9. docs/fr/docs/index.md

        * **WebSockets**
        * de tester le code très facilement avec `requests` et `pytest`
        * **<abbr title="Cross-Origin Resource Sharing">CORS</abbr>**
        * **Cookie Sessions**
        * ... et plus encore.
    
    ## Performance
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 22K bytes
    - Viewed (0)
  10. fastapi/applications.py

                    ```python
                    app = FastAPI(
                        contact={
                            "name": "Deadpoolio the Amazing",
                            "url": "http://x-force.example.com/contact/",
                            "email": "dp@x-force.example.com",
                        }
                    )
                    ```
                    """
                ),
            ] = None,
            license_info: Annotated[
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
Back to top