Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 188 for UserName (0.14 sec)

  1. tests/test_tutorial/test_body_multiple_params/test_tutorial003_an.py

                        },
                    },
                    "User": {
                        "title": "User",
                        "required": ["username"],
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "full_name": IsDict(
                                {
                                    "title": "Full Name",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.4K bytes
    - Viewed (2)
  2. tests/test_security_http_basic_realm_description.py

        return {"username": credentials.username, "password": credentials.password}
    
    
    client = TestClient(app)
    
    
    def test_security_http_basic():
        response = client.get("/users/me", auth=("john", "secret"))
        assert response.status_code == 200, response.text
        assert response.json() == {"username": "john", "password": "secret"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/security/first-steps.md

    So, let's review it from that simplified point of view:
    
    * The user types the `username` and `password` in the frontend, and hits `Enter`.
    * The frontend (running in the user's browser) sends that `username` and `password` to a specific URL in our API (declared with `tokenUrl="token"`).
    * The API checks that `username` and `password`, and responds with a "token" (we haven't implemented any of this yet).
    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)
  4. tests/test_tutorial/test_body_multiple_params/test_tutorial003_py310.py

                        },
                    },
                    "User": {
                        "title": "User",
                        "required": ["username"],
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "full_name": IsDict(
                                {
                                    "title": "Full Name",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_openapi_webhooks/test_tutorial001.py

                        "type": "object",
                        "title": "HTTPValidationError",
                    },
                    "Subscription": {
                        "properties": {
                            "username": {"type": "string", "title": "Username"},
                            "monthly_fee": {"type": "number", "title": "Monthly Fee"},
                            "start_date": {
                                "type": "string",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Oct 20 09:00:44 GMT 2023
    - 4.4K bytes
    - Viewed (2)
  6. docs/em/docs/advanced/security/oauth2-scopes.md

    {!../../../docs_src/security/tutorial005.py!}
    ```
    
    ## โœ” `username` & ๐Ÿ’ฝ ๐Ÿ’ 
    
    ๐Ÿ‘ฅ โœ” ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿคš `username`, & โš— โ†”.
    
    & โคด๏ธ ๐Ÿ‘ฅ โœ” ๐Ÿ‘ˆ ๐Ÿ“Š โฎ๏ธ Pydantic ๐Ÿท (โœŠ `ValidationError` โš ), & ๐Ÿšฅ ๐Ÿ‘ฅ ๐Ÿคš โŒ ๐Ÿ‘‚ ๐Ÿฅ™ ๐Ÿค โš–๏ธ โš– ๐Ÿ“Š โฎ๏ธ Pydantic, ๐Ÿ‘ฅ ๐Ÿคš `HTTPException` ๐Ÿ‘ฅ โœ โญ.
    
    ๐Ÿ‘ˆ, ๐Ÿ‘ฅ โ„น Pydantic ๐Ÿท `TokenData` โฎ๏ธ ๐Ÿ†• ๐Ÿ  `scopes`.
    
    โš– ๐Ÿ“Š โฎ๏ธ Pydantic ๐Ÿ‘ฅ ๐Ÿ’ช โš’ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ, ๐Ÿ–ผ, โšซ๏ธโ” `list` `str` โฎ๏ธ โ†” & `str` โฎ๏ธ `username`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  7. docs/en/docs/how-to/nosql-databases-couchbase.md

    ## Get the user
    
    Now create a function that will:
    
    * Take a username.
    * Generate a document ID from it.
    * Get the document with that ID.
    * Put the contents of the document in a `UserInDB` model.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 6K bytes
    - Viewed (0)
  8. docs/em/docs/tutorial/security/get-current-user.md

    & ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ™† ๐Ÿท โš–๏ธ ๐Ÿ’ฝ ๐Ÿ’‚โ€โ™‚ ๐Ÿ“„ (๐Ÿ‘‰ ๐Ÿ’ผ, Pydantic ๐Ÿท `User`).
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿšซ ๐Ÿšซ โš™๏ธ ๐ŸŽฏ ๐Ÿ’ฝ ๐Ÿท, ๐ŸŽ“ โš–๏ธ ๐Ÿ†Ž.
    
    ๐Ÿ‘† ๐Ÿ’š โœ”๏ธ `id` & `email` & ๐Ÿšซ โœ”๏ธ ๐Ÿ™† `username` ๐Ÿ‘† ๐Ÿท โ“ ๐Ÿ’ญ. ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ ๐Ÿ‘‰ ๐ŸŽ ๐Ÿงฐ.
    
    ๐Ÿ‘† ๐Ÿ’š โœ”๏ธ `str`โ“ โš–๏ธ `dict`โ“ โš–๏ธ ๐Ÿ’ฝ ๐ŸŽ“ ๐Ÿท ๐Ÿ‘ ๐Ÿ”— โ“ โšซ๏ธ ๐ŸŒ ๐Ÿ‘ท ๐ŸŽ ๐ŸŒŒ.
    
    ๐Ÿ‘† ๐Ÿค™ ๐Ÿšซ โœ”๏ธ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ‘ˆ ๐Ÿ•น ๐Ÿ‘† ๐Ÿˆธ โœ‹๏ธ ๐Ÿค–, ๐Ÿค–, โš–๏ธ ๐ŸŽ โš™๏ธ, ๐Ÿ‘ˆ โœ”๏ธ ๐Ÿ” ๐Ÿค โ“ ๐Ÿ”„, โšซ๏ธ ๐ŸŒ ๐Ÿ‘ท ๐ŸŽ.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/get-current-user.md

    But you are not restricted to using some specific data model, class or type.
    
    Do you want to have an `id` and `email` and not have any `username` in your model? Sure. You can use these same tools.
    
    Do you want to just have a `str`? Or just a `dict`? Or a database class model instance directly? It all works the same way.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/request-forms.md

    ## ๅฎšไน‰ `Form` ๅ‚ๆ•ฐ
    
    ๅˆ›ๅปบ่กจๅ•๏ผˆ`Form`๏ผ‰ๅ‚ๆ•ฐ็š„ๆ–นๅผไธŽ `Body` ๅ’Œ `Query` ไธ€ๆ ท๏ผš
    
    ```Python hl_lines="7"
    {!../../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ไพ‹ๅฆ‚๏ผŒOAuth2 ่ง„่Œƒ็š„ "ๅฏ†็ ๆต" ๆจกๅผ่ง„ๅฎš่ฆ้€š่ฟ‡่กจๅ•ๅญ—ๆฎตๅ‘้€ `username` ๅ’Œ `password`ใ€‚
    
    <abbr title="specification">่ฏฅ่ง„่Œƒ</abbr>่ฆๆฑ‚ๅญ—ๆฎตๅฟ…้กปๅ‘ฝๅไธบ `username` ๅ’Œ `password`๏ผŒๅนถ้€š่ฟ‡่กจๅ•ๅญ—ๆฎตๅ‘้€๏ผŒไธ่ƒฝ็”จ JSONใ€‚
    
    ไฝฟ็”จ `Form` ๅฏไปฅๅฃฐๆ˜ŽไธŽ `Body` ๏ผˆๅŠ `Query`ใ€`Path`ใ€`Cookie`๏ผ‰็›ธๅŒ็š„ๅ…ƒๆ•ฐๆฎๅ’Œ้ชŒ่ฏใ€‚
    
    !!! info "่ฏดๆ˜Ž"
    
        `Form` ๆ˜ฏ็›ดๆŽฅ็ปงๆ‰ฟ่‡ช `Body` ็š„็ฑปใ€‚
    
    !!! tip "ๆ็คบ"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top