Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 597 for userTime (0.05 sec)

  1. docs/em/docs/tutorial/request-forms.md

    {!../../docs_src/request_forms/tutorial001.py!}
    ```
    
    ๐Ÿ–ผ, 1๏ธโƒฃ ๐ŸŒŒ Oauth2๏ธโƒฃ ๐Ÿ”ง ๐Ÿ’ช โš™๏ธ (๐Ÿค™ "๐Ÿ” ๐Ÿ’ง") โšซ๏ธ โœ” ๐Ÿ“จ `username` & `password` ๐Ÿ“จ ๐Ÿ‘.
    
    <abbr title="specification">๐Ÿ”Œ</abbr> ๐Ÿšš ๐Ÿ‘ โšซ๏ธโ” ๐Ÿ“› `username` &amp; `password`, &amp; ๐Ÿ“จ ๐Ÿ“จ ๐Ÿ‘, ๐Ÿšซ ๐ŸŽป.
    
    โฎ๏ธ `Form` ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“ฃ ๐ŸŽ ๐Ÿ“ณ โฎ๏ธ `Body` (&amp; `Query`, `Path`, `Cookie`), ๐Ÿ”Œ ๐Ÿ”ฌ, ๐Ÿ–ผ, ๐Ÿ“› (โœ… `user-name` โ†ฉ๏ธ `username`), โ™’๏ธ.
    
    /// info
    
    `Form` ๐ŸŽ“ ๐Ÿ‘ˆ ๐Ÿ˜– ๐Ÿ”— โšช๏ธโžก๏ธ `Body`.
    
    ///
    
    /// tip
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. docs_src/security/tutorial002_an_py310.py

    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: str | None = None
        full_name: str | None = None
        disabled: bool | None = None
    
    
    def fake_decode_token(token):
        return User(
            username=token + "fakedecoded", email="******@****.***", full_name="John Doe"
        )
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 761 bytes
    - Viewed (0)
  3. src/main/webapp/WEB-INF/view/admin/fileauth/admin_fileauth_edit.jsp

                                        <label for="username" class="col-sm-3 text-sm-right col-form-label"><la:message
                                                key="labels.file_auth_username"/></label>
                                        <div class="col-sm-9">
                                            <la:errors property="username"/>
                                            <la:text styleId="username" property="username" styleClass="form-control"/>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 7.9K bytes
    - Viewed (0)
  4. docs_src/security/tutorial002.py

    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: Union[str, None] = None
        full_name: Union[str, None] = None
        disabled: Union[bool, None] = None
    
    
    def fake_decode_token(token):
        return User(
            username=token + "fakedecoded", email="******@****.***", full_name="John Doe"
        )
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 755 bytes
    - Viewed (0)
  5. docs_src/dependencies/tutorial008d_an_py39.py

            raise
    
    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id == "portal-gun":
            raise InternalError(
                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Feb 24 23:06:37 UTC 2024
    - 734 bytes
    - Viewed (0)
  6. docs_src/dependencies/tutorial012_an_py39.py

    
    @app.get("/items/")
    async def read_items():
        return [{"item": "Portal Gun"}, {"item": "Plumbus"}]
    
    
    @app.get("/users/")
    async def read_users():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 756 bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial008b.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: str = Depends(get_username)):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 735 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

                        },
                    },
                    "User": {
                        "title": "User",
                        "required": ["username"],
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "full_name": IsDict(
                                {
                                    "title": "Full Name",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/security/http-basic-auth.md

    Um dies zu lรถsen, konvertieren wir zunรคchst den `username` und das `password` in UTF-8-codierte `bytes`.
    
    Dann kรถnnen wir `secrets.compare_digest()` verwenden, um sicherzustellen, dass `credentials.username` `"stanleyjobson"` und `credentials.password` `"swordfish"` ist.
    
    {* ../../docs_src/security/tutorial007_an_py39.py hl[1,12:24] *}
    
    Dies wรคre das gleiche wie:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 15:25:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial008b_an.py

    
    @app.get("/items/{item_id}")
    def get_item(item_id: str, username: Annotated[str, Depends(get_username)]):
        if item_id not in data:
            raise HTTPException(status_code=404, detail="Item not found")
        item = data[item_id]
        if item["owner"] != username:
            raise OwnerError(username)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Dec 26 20:37:34 UTC 2023
    - 785 bytes
    - Viewed (0)
Back to top