Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 626 for userHome (0.05 seconds)

  1. 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"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  2. 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
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  3. docs/ru/docs/tutorial/request-forms.md

    <abbr title="specification – спецификация">spec</abbr> требует, чтобы поля были строго названы `username` и `password` и отправлялись как поля формы, а не JSON.
    
    С помощью `Form` вы можете объявить те же настройки, что и с `Body` (и `Query`, `Path`, `Cookie`), включая валидацию, примеры, псевдоним (например, `user-name` вместо `username`) и т.д.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Sep 30 11:24:39 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  4. internal/event/target/nats_contrib_test.go

    	opts.Port = 14223
    	opts.Username = "testminio"
    	opts.Password = "miniotest"
    	s := natsserver.RunServer(&opts)
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    		Enable: true,
    		Address: xnet.Host{
    			Name:      "localhost",
    			Port:      (xnet.Port(opts.Port)),
    			IsPortSet: true,
    		},
    		Subject:  "test",
    		Username: opts.Username,
    		Password: opts.Password,
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Apr 27 04:30:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  5. 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"],
    )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 18 02:25:44 GMT 2024
    - 5.7K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial008c_an_py39.py

            print("Oops, we didn't raise again, Britney 😱")
    
    
    @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(
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 700 bytes
    - Click Count (0)
  7. docs_src/security/tutorial002_an_py39.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"
        )
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 786 bytes
    - Click Count (0)
  8. tests/test_tutorial/test_response_model/test_tutorial002.py

                "schemas": {
                    "UserIn": {
                        "title": "UserIn",
                        "required": ["username", "password", "email"],
                        "type": "object",
                        "properties": {
                            "username": {"title": "Username", "type": "string"},
                            "password": {"title": "Password", "type": "string"},
                            "email": {
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/auth/chain/AuthenticationChain.java

        void delete(User user);
    
        /**
         * Changes the password for the specified user.
         * @param username The username for which to change the password.
         * @param password The new password.
         * @return True if the password was successfully changed, false otherwise.
         */
        boolean changePassword(String username, String password);
    
        /**
         * Loads user information from the authentication chain.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

            final SearchLog searchLog = new SearchLog();
    
            if (fessConfig.isUserInfo()) {
                final String userCode = userInfoHelper.getUserCode();
                if (userCode != null) {
                    searchLog.setUserSessionId(userCode);
                    searchLog.setUserInfo(getUserInfo(userCode));
                }
            }
    
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 26.4K bytes
    - Click Count (0)
Back to Top