Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for spec (0.21 sec)

  1. fastapi/security/oauth2.py

    
        grant_type: the OAuth2 spec says it is required and MUST be the fixed string "password".
            This dependency is strict about it. If you want to be permissive, use instead the
            OAuth2PasswordRequestForm dependency class.
        username: username string. The OAuth2 spec requires the exact field name "username".
        password: password string. The OAuth2 spec requires the exact field name "password".
    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/advanced/middleware.md

    A middleware doesn't have to be made for FastAPI or Starlette to work, as long as it follows the ASGI spec.
    
    In general, ASGI middlewares are classes that expect to receive an ASGI app as the first argument.
    
    So, in the documentation for third-party ASGI middlewares they will probably tell you to do something like:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/behind-a-proxy.md

    ### Checking the current `root_path`
    
    You can get the current `root_path` used by your application for each request, it is part of the `scope` dictionary (that's part of the ASGI spec).
    
    Here we are including it in the message just for demonstration purposes.
    
    ```Python hl_lines="8"
    {!../../../docs_src/behind_a_proxy/tutorial001.py!}
    ```
    
    Then, if you start Uvicorn with:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
  4. docs/en/docs/tutorial/security/simple-oauth2.md

    And the spec says that the fields have to be named like that. So `user-name` or `email` wouldn't work.
    
    But don't worry, you can show it as you wish to your final users in the frontend.
    
    And your database models can use any other names you want.
    
    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)
  5. docs/en/docs/tutorial/request-forms.md

        ```
    
    For example, in one of the ways the OAuth2 specification can be used (called "password flow") it is required to send a `username` and `password` as form fields.
    
    The <abbr title="specification">spec</abbr> requires the fields to be exactly named `username` and `password`, and to be sent as form fields, not JSON.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/request-forms.md

    Die <abbr title="Specification – Spezifikation">Spec</abbr> erfordert, dass die Felder exakt `username` und `password` genannt werden und als Formularfelder, nicht JSON, gesendet werden.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:06:54 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  7. fastapi/openapi/docs.py

            padding: 0;
          }}
        </style>
        </head>
        <body>
        <noscript>
            ReDoc requires Javascript to function. Please enable it to browse the documentation.
        </noscript>
        <redoc spec-url="{openapi_url}"></redoc>
        <script src="{redoc_js_url}"> </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    def get_swagger_ui_oauth2_redirect_html() -> HTMLResponse:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/oauth2-scopes.md

    In this exception, we include the scopes required (if any) as a string separated by spaces (using `scope_str`). We put that string containing the scopes in the `WWW-Authenticate` header (this is part of the spec).
    
    === "Python 3.10+"
    
        ```Python hl_lines="105  107-115"
        {!> ../../../docs_src/security/tutorial005_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="105  107-115"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/first-steps.md

    !!! info
        If you are a very strict "Pythonista" you might dislike the style of the parameter name `tokenUrl` instead of `token_url`.
    
        That's because it is using the same name as in the OpenAPI spec. So that if you need to investigate more about any of these security schemes you can just copy and paste it to find more information about it.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. docs/en/docs/history-design-future.md

    Also, the best approach was to use already existing standards.
    
    So, before even starting to code **FastAPI**, I spent several months studying the specs for OpenAPI, JSON Schema, OAuth2, etc. Understanding their relationship, overlap, and differences.
    
    ## Design
    
    Then I spent some time designing the developer "API" I wanted to have as a user (as a developer using FastAPI).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top