Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 75 for username (0.23 sec)

  1. tests/test_security_oauth2_optional_description.py

            }
        },
        description="OAuth2 security scheme",
        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()):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. 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",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  3. 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)
  4. docs/pt/docs/tutorial/security/first-steps.md

    Então, vamos rever de um ponto de vista simplificado:
    
    * O usuário digita o `username` e a `senha` no frontend e aperta `Enter`.
    * O frontend (rodando no browser do usuário) manda o `username` e a `senha` para uma URL específica na sua API (declarada com `tokenUrl="token"`).
    * A API checa aquele `username` e `senha`, e responde com um "token" (nós não implementamos nada disso ainda).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  5. tests/test_filter_pydantic_sub_model_pv2.py

                        },
                    },
                    "ModelB": {
                        "title": "ModelB",
                        "required": ["username"],
                        "type": "object",
                        "properties": {"username": {"title": "Username", "type": "string"}},
                    },
                    "ValidationError": {
                        "title": "ValidationError",
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  6. 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)
  7. internal/event/target/postgresql.go

    		if !args.Host.IsEmpty() {
    			params = append(params, "host="+args.Host.String())
    		}
    		if args.Port != "" {
    			params = append(params, "port="+args.Port)
    		}
    		if args.Username != "" {
    			params = append(params, "username="+args.Username)
    		}
    		if args.Password != "" {
    			params = append(params, "password="+args.Password)
    		}
    		if args.Database != "" {
    			params = append(params, "dbname="+args.Database)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. pom.xml

    								</source>
    							</sources>
    						</mapping>
    						<mapping>
    							<directory>${packaging.fess.var.dir}</directory>
    							<filemode>755</filemode>
    							<username>${packaging.fess.user}</username>
    							<groupname>${packaging.fess.group}</groupname>
    						</mapping>
    						<!-- bin -->
    						<mapping>
    							<directory>${packaging.fess.bin.dir}</directory>
    							<filemode>755</filemode>
    XML
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Mon Apr 22 12:06:58 GMT 2024
    - 48.7K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/extra-models.md

    ```
    
    would result in something equivalent to:
    
    ```Python
    UserInDB(
        username="john",
        password="secret",
        email="******@****.***",
        full_name=None,
    )
    ```
    
    Or more exactly, using `user_dict` directly, with whatever contents it might have in the future:
    
    ```Python
    UserInDB(
        username = user_dict["username"],
        password = user_dict["password"],
        email = user_dict["email"],
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (1)
  10. docs/en/docs/tutorial/security/simple-oauth2.md

    Now let's build from the previous chapter and add the missing parts to have a complete security flow.
    
    ## 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.
    
    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)
Back to top