Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 612 for userName (0.1 sec)

  1. docs_src/request_forms/tutorial001_an.py

    from fastapi import FastAPI, Form
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.post("/login/")
    async def login(username: Annotated[str, Form()], password: Annotated[str, Form()]):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 233 bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmUtil.java

        /**
         * 
         * @param domain
         * @param username
         * @param password
         * 
         * @return the caclulated mac
         */
        public static byte[] nTOWFv2 ( String domain, String username, String password ) {
            return nTOWFv2(domain, username, getNTHash(password));
        }
    
    
        /**
         * 
         * @param domain
         * @param username
         * @param passwordHash
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 9.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/es/config/cbean/cq/bs/BsWebAuthenticationCQ.java

            TermQueryBuilder builder = regTermQ("username", username);
            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
        public void setUsername_NotEqual(String username) {
            setUsername_NotTerm(username, null);
        }
    
        public void setUsername_NotTerm(String username) {
            setUsername_NotTerm(username, null);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 95.5K bytes
    - Viewed (0)
  4. docs/em/docs/tutorial/security/first-steps.md

    Oauth2๏ธโƒฃ ๐Ÿ”ง ๐Ÿ‘ˆ ๐Ÿ‘ฉโ€๐Ÿ’ป โš–๏ธ ๐Ÿ› ๏ธ ๐Ÿ’ช ๐Ÿ”ฌ ๐Ÿ’ฝ ๐Ÿ‘ˆ ๐Ÿ”“ ๐Ÿ‘ฉโ€๐Ÿ’ป.
    
    โœ‹๏ธ ๐Ÿ‘‰ ๐Ÿ’ผ, ๐ŸŽ **FastAPI** ๐Ÿˆธ ๐Ÿ”œ ๐Ÿต ๐Ÿ› ๏ธ & ๐Ÿค.
    
    , โžก๏ธ ๐Ÿ“„ โšซ๏ธ โšช๏ธโžก๏ธ ๐Ÿ‘ˆ ๐Ÿ“‰ โ˜ ๐ŸŽ‘:
    
    * ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ†Ž `username` & `password` ๐Ÿ•ธ, & ๐ŸŽฏ `Enter`.
    * ๐Ÿ•ธ (๐Ÿƒโ€โ™‚ ๐Ÿ‘ฉโ€๐Ÿ’ป ๐Ÿ–ฅ) ๐Ÿ“จ ๐Ÿ‘ˆ `username` & `password` ๐ŸŽฏ ๐Ÿ“› ๐Ÿ‘† ๐Ÿ› ๏ธ (๐Ÿ“ฃ โฎ๏ธ `tokenUrl="token"`).
    * ๐Ÿ› ๏ธ โœ… ๐Ÿ‘ˆ `username` & `password`, & ๐Ÿ“จ โฎ๏ธ "๐Ÿค" (๐Ÿ‘ฅ ๐Ÿšซ ๐Ÿ› ๏ธ ๐Ÿ™† ๐Ÿ‘‰).
        *  "๐Ÿค" ๐ŸŽป โฎ๏ธ ๐ŸŽš ๐Ÿ‘ˆ ๐Ÿ‘ฅ ๐Ÿ’ช โš™๏ธ โช โœ” ๐Ÿ‘‰ ๐Ÿ‘ฉโ€๐Ÿ’ป.
        * ๐Ÿ›Ž, ๐Ÿค โš’ ๐Ÿ•› โฎ๏ธ ๐Ÿ•ฐ.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. tests/test_security_openid_connect_optional.py

    app = FastAPI()
    
    oid = OpenIdConnect(openIdConnectUrl="/openid", auto_error=False)
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(oid)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: Optional[User] = Depends(get_current_user)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. 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",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Oct 20 09:00:44 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_security/test_tutorial005_an.py

                        "required": IsOneOf(
                            ["username", "email", "full_name", "disabled"],
                            # TODO: remove when deprecating Pydantic v1
                            ["username"],
                        ),
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "email": IsDict(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/extra-models.md

    ```Python
    UserInDB(**user_dict)
    ```
    
    ๅฐฑไผš็”Ÿๆˆๅฆ‚ไธ‹็ป“ๆžœ๏ผš
    
    ```Python
    UserInDB(
        username="john",
        password="secret",
        email="******@****.***",
        full_name=None,
    )
    ```
    
    ๆˆ–ๆ›ด็ฒพๅ‡†๏ผŒ็›ดๆŽฅๆŠŠๅฏ่ƒฝไผš็”จๅˆฐ็š„ๅ†…ๅฎนไธŽ `user_dict` ไธ€่ตทไฝฟ็”จ๏ผš
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
        full_name = user_dict["full_name"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_security/test_tutorial003_an_py310.py

        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    @needs_py310
    def test_login_incorrect_username(client: TestClient):
        response = client.post("/token", data={"username": "foo", "password": "secret"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    @needs_py310
    def test_no_token(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_security/test_tutorial003_py310.py

        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    @needs_py310
    def test_login_incorrect_username(client: TestClient):
        response = client.post("/token", data={"username": "foo", "password": "secret"})
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    @needs_py310
    def test_no_token(client: TestClient):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top