Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 273 for usernames (0.44 seconds)

  1. src/test/java/jcifs/util/InputValidatorTest.java

        }
    
        @ParameterizedTest
        @DisplayName("Test valid usernames")
        @ValueSource(strings = { "user", "user123", "user.name", "user-name", "user_name", "******@****.***" })
        void testValidUsernames(String username) {
            assertDoesNotThrow(() -> InputValidator.validateUsername(username));
        }
    
        @ParameterizedTest
        @DisplayName("Test invalid usernames")
        @ValueSource(strings = { "user name", // space
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

            if (isTargetUser(username)) {
                executeCommand(deleteCommand, username, StringUtil.EMPTY);
            }
        }
    
        @Override
        public boolean changePassword(final String username, final String password) {
            if (isTargetUser(username) && StringUtil.isNotBlank(password)) {
                return executeCommand(updateCommand, username, password) == 0;
            }
            return true;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/security/oauth2-jwt.md

    When `authenticate_user` is called with a username that doesn't exist in the database, we still run `verify_password` against a dummy hash.
    
    This ensures the endpoint takes roughly the same amount of time to respond whether the username is valid or not, preventing **timing attacks** that could be used to enumerate existing usernames.
    
    /// note
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  4. docs/ko/docs/advanced/security/oauth2-scopes.md

    ## `username`과 데이터 형태 검증하기 { #verify-the-username-and-data-shape }
    
    `username`을 얻었는지 확인하고, 스코프를 추출합니다.
    
    그런 다음 Pydantic 모델로 데이터를 검증합니다(`ValidationError` 예외를 잡습니다). JWT 토큰을 읽거나 Pydantic으로 데이터를 검증하는 과정에서 오류가 나면, 앞에서 만든 `HTTPException`을 raise합니다.
    
    이를 위해 Pydantic 모델 `TokenData`에 새 속성 `scopes`를 추가합니다.
    
    Pydantic으로 데이터를 검증하면, 예를 들어 스코프가 정확히 `str`의 `list`이고 `username`이 `str`인지 등을 보장할 수 있습니다.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 15.7K bytes
    - Click Count (0)
  5. tests/test_security_oauth2.py

            }
        }
    )
    
    
    class User(BaseModel):
        username: str
    
    
    # Here we use string annotations to test them
    def get_current_user(oauth_header: "str" = Security(reusable_oauth2)):
        user = User(username=oauth_header)
        return user
    
    
    @app.post("/login")
    # Here we use string annotations to test them
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 9.8K bytes
    - Click Count (0)
  6. 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: str | None = 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()):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  7. src/main/java/jcifs/util/AuthenticationRateLimiter.java

        }
    
        /**
         * Record successful authentication
         *
         * @param username the username
         * @param sourceIp the source IP
         */
        public void recordSuccess(String username, String sourceIp) {
            if (username != null) {
                AccountAttempts account = accountAttempts.get(username);
                if (account != null) {
                    account.reset();
                }
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

        }
    
        /**
         * Finds a login user by username.
         *
         * @param username the username to search for
         * @return an optional entity containing the found user, or empty if not found
         */
        @Override
        protected OptionalEntity<FessUser> doFindLoginUser(final String username) {
            return userBhv.selectEntity(cb -> {
                cb.query().setName_Equal(username);
            }).map(user -> (FessUser) user);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

                        },
                        "User": {
                            "title": "User",
                            "required": ["username"],
                            "type": "object",
                            "properties": {
                                "username": {"title": "Username", "type": "string"},
                                "full_name": {
                                    "title": "Full Name",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 10K bytes
    - Click Count (0)
  10. docs/uk/docs/tutorial/security/simple-oauth2.md

    ## Отримайте `username` і `password` { #get-the-username-and-password }
    
    Ми використаємо утиліти безпеки **FastAPI**, щоб отримати `username` і `password`.
    
    OAuth2 визначає, що під час використання «потоку паролю» (який ми використовуємо) клієнт/користувач має надіслати поля `username` і `password` як дані форми.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 15K bytes
    - Click Count (0)
Back to Top