Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 651 for password1 (0.06 seconds)

  1. src/main/java/org/codelibs/fess/opensearch/user/cbean/cq/bs/BsUserCQ.java

            TermQueryBuilder builder = regTermQ("password", password);
            if (opLambda != null) {
                opLambda.callback(builder);
            }
        }
    
        public void setPassword_NotEqual(String password) {
            setPassword_NotTerm(password, null);
        }
    
        public void setPassword_NotTerm(String password) {
            setPassword_NotTerm(password, null);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 326.2K bytes
    - Click Count (0)
  2. tests/test_security_http_basic_realm.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"}
    
    
    def test_security_http_basic_no_credentials():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  3. 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,
    	}
    
    	con, err := clientConfig.connectNats()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Apr 27 04:30:57 GMT 2025
    - 3K bytes
    - Click Count (0)
  4. docs_src/security/tutorial006_py310.py

    app = FastAPI()
    
    security = HTTPBasic()
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPBasicCredentials = Depends(security)):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 321 bytes
    - Click Count (0)
  5. docs/uk/docs/advanced/security/http-basic-auth.md

    Щоб це обійти, ми спочатку перетворюємо `username` і `password` у `bytes`, кодувавши їх у UTF-8.
    
    Потім ми можемо використати `secrets.compare_digest()`, щоб упевнитися, що `credentials.username` дорівнює `"stanleyjobson"`, а `credentials.password` дорівнює `"swordfish"`.
    
    {* ../../docs_src/security/tutorial007_an_py310.py hl[1,12:24] *}
    
    Це було б подібно до:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  6. docs_src/security/tutorial007_py310.py

        current_password_bytes = credentials.password.encode("utf8")
        correct_password_bytes = b"swordfish"
        is_correct_password = secrets.compare_digest(
            current_password_bytes, correct_password_bytes
        )
        if not (is_correct_username and is_correct_password):
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  7. docs_src/security/tutorial007_an_py310.py

        current_password_bytes = credentials.password.encode("utf8")
        correct_password_bytes = b"swordfish"
        is_correct_password = secrets.compare_digest(
            current_password_bytes, correct_password_bytes
        )
        if not (is_correct_username and is_correct_password):
            raise HTTPException(
                status_code=status.HTTP_401_UNAUTHORIZED,
                detail="Incorrect username or password",
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/SystemUtilTest.java

            assertEquals("********", SystemUtil.maskSensitiveValue("password", "secret"));
            assertEquals("********", SystemUtil.maskSensitiveValue("PASSWORD", "secret"));
            assertEquals("********", SystemUtil.maskSensitiveValue("Password", "secret"));
            assertEquals("********", SystemUtil.maskSensitiveValue("PaSsWoRd", "secret"));
        }
    
        @Test
        public void test_maskSensitiveValue_emptyValue() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 17.1K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/ldap/LdapUtilTest.java

            assertEquals("\\2a\\29\\28uid=\\2a\\29\\29\\28|\\28uid=\\2a", LdapUtil.escapeValue("*)(uid=*))(|(uid=*"));
    
            // Test complex injection: admin)(&(password=*))
            assertEquals("admin\\29\\28&\\28password=\\2a\\29\\29", LdapUtil.escapeValue("admin)(&(password=*))"));
        }
    
        @Test
        public void test_escapeValue_allSpecialCharsInSequence() {
            assertEquals("\\5c\\2a\\28\\29\\00", LdapUtil.escapeValue("\\*()\0"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

                final String username = userCredential.getUser();
                final String password = userCredential.getPassword();
                if (!fessConfig.isAdminUser(username)) {
                    final OptionalEntity<FessUser> ldapUser = ComponentUtil.getLdapManager().login(username, password);
                    if (ldapUser.isPresent()) {
                        return ldapUser;
                    }
                }
    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)
Back to Top