Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 621 for incorrectly (0.12 seconds)

  1. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

            }
        }
    
        @Nested
        @DisplayName("Encode Tests")
        class EncodeTests {
    
            @Test
            @DisplayName("Should encode simple path correctly")
            void testEncodeSimplePath() {
                String path = "\\\\server\\share";
                int maxReferralLevel = 3;
                buffer = new DfsReferralRequestBuffer(path, maxReferralLevel);
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  2. docs_src/security/tutorial003_an_py39.py

        if not user_dict:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
        user = UserInDB(**user_dict)
        hashed_password = fake_hash_password(form_data.password)
        if not hashed_password == user.hashed_password:
            raise HTTPException(status_code=400, detail="Incorrect username or password")
    
        return {"access_token": user.username, "token_type": "bearer"}
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  3. tests/test_tutorial/test_security/test_tutorial003.py

    
    def test_login_incorrect_password(client: TestClient):
        response = client.post(
            "/token", data={"username": "johndoe", "password": "incorrect"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    
    
    def test_login_incorrect_username(client: TestClient):
        response = client.post("/token", data={"username": "foo", "password": "secret"})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

        private MsrpcDfsRootEnum dfsRootEnum;
    
        @BeforeEach
        void setUp() {
            dfsRootEnum = new MsrpcDfsRootEnum(TEST_SERVER);
        }
    
        @Test
        @DisplayName("Constructor should initialize all fields correctly")
        void testConstructorInitialization() {
            // Verify level is set to 200 for DFS root enumeration
            assertEquals(200, dfsRootEnum.level);
    
            // Verify DCE/RPC message properties
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  5. src/test/java/jcifs/spnego/NegTokenInitTest.java

            } finally {
                der.close();
            }
            return collector.toByteArray();
        }
    
        @Test
        @DisplayName("Round-trip: all fields set encodes and parses back correctly")
        void testRoundTripAllFields() throws Exception {
            ASN1ObjectIdentifier[] mechs = new ASN1ObjectIdentifier[] { OID_KRB, OID_NTLM };
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/security/http-basic-auth.md

    #### The time to answer helps the attackers { #the-time-to-answer-helps-the-attackers }
    
    At that point, by noticing that the server took some microseconds longer to send the "Incorrect username or password" response, the attackers will know that they got _something_ right, some of the initial letters were right.
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            customRequest.setFileId(testFileId);
    
            // Then
            assertArrayEquals(testFileId, customRequest.getFileId(), "Custom implementation should store file ID correctly");
            assertEquals(1, customRequest.getSetCount(), "Should track set count correctly");
        }
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

            assertEquals("Structure size is not 16", exception.getMessage());
        }
    
        @DisplayName("Should parse different share types correctly")
        @ParameterizedTest
        @CsvSource({ "1, 1", // DISK
                "2, 2", // PIPE
                "3, 3", // PRINT
                "0, 0", // Unknown
                "255, -1" // Byte overflow to signed
        })
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  9. tests/test_tutorial/test_security/test_tutorial007.py

        assert response.json() == {"detail": "Incorrect username or password"}
        assert response.headers["WWW-Authenticate"] == "Basic"
    
    
    def test_security_http_basic_invalid_password(client: TestClient):
        response = client.get("/users/me", auth=("stanleyjobson", "wrongpassword"))
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Incorrect username or password"}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            // Then - verify command is set correctly using reflection
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(req);
    
            assertEquals(0x0003, command); // SMB2_TREE_CONNECT command value
    
            // Verify path is set correctly
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.6K bytes
    - Click Count (0)
Back to Top