Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 465 for userHome (0.04 sec)

  1. tests/test_forms_single_param.py

    from fastapi import FastAPI, Form
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.post("/form/")
    def post_form(username: Annotated[str, Form()]):
        return username
    
    
    client = TestClient(app)
    
    
    def test_single_form_field():
        response = client.post("/form/", data={"username": "Rick"})
        assert response.status_code == 200, response.text
        assert response.json() == "Rick"
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. tests/test_forms_single_model.py

        response = client.post(
            "/form/",
            data={
                "username": "Rick",
                "lastname": "Sanchez",
                "age": "70",
                "tags": ["plumbus", "citadel"],
                "with": "something",
            },
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "username": "Rick",
            "lastname": "Sanchez",
            "age": 70,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. docs_src/bigger_applications/app_an_py39/routers/users.py

    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 407 bytes
    - Viewed (0)
  4. docs_src/bigger_applications/app_py39/routers/users.py

    
    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]
    
    
    @router.get("/users/me", tags=["users"])
    async def read_user_me():
        return {"username": "fakecurrentuser"}
    
    
    @router.get("/users/{username}", tags=["users"])
    async def read_user(username: str):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 407 bytes
    - Viewed (0)
  5. tests/test_security_oauth2_optional.py

            }
        },
        auto_error=False,
    )
    
    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: Optional[str] = Security(reusable_oauth2)):
        if oauth_header is None:
            return None
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    def login(form_data: OAuth2PasswordRequestFormStrict = Depends()):
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/login/EntraIdCredential.java

                    final String username = account.username();
                    if (logger.isDebugEnabled()) {
                        logger.debug("homeAccountId={}, username={}", homeAccountId, username);
                    }
                    permissionSet.add(systemHelper.getSearchRoleByUser(homeAccountId));
                    permissionSet.add(systemHelper.getSearchRoleByUser(username));
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_response_model/test_tutorial003_01.py

                    "schemas": {
                        "BaseUser": {
                            "title": "BaseUser",
                            "required": ["username", "email"],
                            "type": "object",
                            "properties": {
                                "username": {"title": "Username", "type": "string"},
                                "email": {
                                    "title": "Email",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  8. docs/de/docs/tutorial/security/simple-oauth2.md

    ## `username` und `password` entgegennehmen { #get-the-username-and-password }
    
    Wir werden **FastAPIs** Sicherheits-Werkzeuge verwenden, um den `username` und das `password` entgegenzunehmen.
    
    OAuth2 spezifiziert, dass der Client/Benutzer bei Verwendung des „Password Flow“ (den wir verwenden) die Felder `username` und `password` als Formulardaten senden muss.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Sep 20 15:10:09 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/security/simple-oauth2.md

    ## Get the `username` and `password` { #get-the-username-and-password }
    
    We are going to use **FastAPI** security utilities to get the `username` and `password`.
    
    OAuth2 specifies that when using the "password flow" (that we are using) the client/user must send a `username` and `password` fields as form data.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/security/simple-oauth2.md

    ## Obtener el `username` y `password` { #get-the-username-and-password }
    
    Vamos a usar las utilidades de seguridad de **FastAPI** para obtener el `username` y `password`.
    
    OAuth2 especifica que cuando se utiliza el "password flow" (que estamos usando), el cliente/usuario debe enviar campos `username` y `password` como form data.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top