Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 645 for usernames (0.19 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. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertThat(parse("http://username:@host/path"))
          .isEqualTo(parse("http://username@host/path"))
      }
    
      @Test
      fun passwordWithEmptyUsername() {
        // Chrome doesn't mind, but Firefox rejects URLs with empty usernames and non-empty passwords.
        assertThat(parse("http://:@host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http://:password@@host/path").encodedPassword)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Mon Aug 04 07:38:48 GMT 2025
    - 69.9K bytes
    - Click Count (0)
  5. docs/sts/rw-ldap-username.json

    Harshavardhana <******@****.***> 1622223187 -0700
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 28 17:33:07 GMT 2021
    - 201 bytes
    - Click Count (0)
  6. 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)
  7. src/test/java/org/codelibs/fess/exception/FessUserNotFoundExceptionTest.java

            String username = null;
            FessUserNotFoundException exception = new FessUserNotFoundException(username);
    
            assertNotNull(exception);
            assertEquals("User is not found: null", exception.getMessage());
            assertNull(exception.getCause());
        }
    
        @Test
        public void test_constructor_withSpecialCharacters() {
            // Test with username containing special characters
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/repository/Authentication.java

        }
    
        /**
         * Get the username used to access the repository.
         *
         * @return username at repository
         */
        public String getUsername() {
            return username;
        }
    
        /**
         * Set username used to access the repository.
         *
         * @param userName the username used to access repository
         */
        public void setUsername(final String userName) {
            this.username = userName;
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  9. docs/en/docs/advanced/security/http-basic-auth.md

        * It contains the `username` and `password` sent.
    
    {* ../../docs_src/security/tutorial006_an_py310.py hl[4,8,12] *}
    
    When you try to open the URL for the first time (or click the "Execute" button in the docs) the browser will ask you for your username and password:
    
    <img src="/img/tutorial/security/image12.png">
    
    ## Check the username { #check-the-username }
    
    Here's a more complete example.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs_src/security/tutorial003_an_py310.py

    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    class User(BaseModel):
        username: str
        email: str | None = None
        full_name: str | None = None
        disabled: bool | None = None
    
    
    class UserInDB(User):
        hashed_password: str
    
    
    def get_user(db, username: str):
        if username in db:
            user_dict = db[username]
            return UserInDB(**user_dict)
    
    
    def fake_decode_token(token):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.5K bytes
    - Click Count (0)
Back to Top