Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 69 for test_user (0.77 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            for (int i = 0; i < 100; i++) {
                NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("testdomain", "testuser", "password123");
                NtlmPasswordAuthenticator auth2 = new NtlmPasswordAuthenticator("testdomain", "testuser", "password124");
                auth1.equals(auth2);
            }
        }
    
        /**
         * Test that password comparison is constant-time by comparing execution times
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  2. src/main/resources/esclient.xml

    			<arg>"fess_config.web_config/web_config"</arg>
    		</postConstruct>
    		<!-- fess_user index -->
    		<postConstruct name="addIndexConfig">
    			<arg>"fess_user.user/user"</arg>
    		</postConstruct>
    		<postConstruct name="addIndexConfig">
    			<arg>"fess_user.role/role"</arg>
    		</postConstruct>
    		<postConstruct name="addIndexConfig">
    			<arg>"fess_user.group/group"</arg>
    		</postConstruct>
    		<!-- fess_log index -->
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Wed Nov 06 13:45:02 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. tests/test_schema_compat_pydantic_v2.py

            user = "user"
    
        class OtherRole(str, Enum): ...
    
        class User(BaseModel):
            username: str
            role: PlatformRole | OtherRole
    
        @app.get("/users")
        async def get_user() -> User:
            return {"username": "alice", "role": "admin"}
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_get(client: TestClient):
        response = client.get("/users")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/opensearch/user/exbhv/RoleBhv.java

        protected String asEsIndex() {
            if (indexName == null) {
                final String name = ComponentUtil.getFessConfig().getIndexUserIndex();
                indexName = super.asEsIndex().replaceFirst(Pattern.quote("fess_user"), name);
            }
            return indexName;
        }
    
        @Override
        protected <RESULT extends Role> RESULT createEntity(final Map<String, Object> source, final Class<? extends RESULT> entityType) {
            try {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            // Given
            Type2Message type2 = createMockType2Message();
            String password = "testpassword";
            String domain = "TESTDOMAIN";
            String username = "testuser";
            String workstation = "TESTWS";
            int flags = NtlmFlags.NTLMSSP_NEGOTIATE_UNICODE | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM;
    
            // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmHttpServletRequestTest.java

         * Verifies that the method returns the name of the principal.
         */
        @Test
        void testGetRemoteUser() {
            // Arrange: Define the expected user name from the principal
            String expectedUserName = "testUser";
            when(mockPrincipal.getName()).thenReturn(expectedUserName);
    
            // Act: Call the method under test
            String actualUserName = ntlmRequest.getRemoteUser();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  7. tests/test_params_repr.py

    from typing import Any
    
    from fastapi.params import Body, Cookie, Header, Param, Path, Query
    
    test_data: list[Any] = ["teststr", None, ..., 1, []]
    
    
    def get_user():
        return {}  # pragma: no cover
    
    
    def test_param_repr_str():
        assert repr(Param("teststr")) == "Param(teststr)"
    
    
    def test_param_repr_none():
        assert repr(Param(None)) == "Param(None)"
    
    
    def test_param_repr_ellipsis():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. tests/test_route_scope.py

    from fastapi import FastAPI, Request, WebSocket, WebSocketDisconnect
    from fastapi.routing import APIRoute, APIWebSocketRoute
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/users/{user_id}")
    async def get_user(user_id: str, request: Request):
        route: APIRoute = request.scope["route"]
        return {"user_id": user_id, "path": route.path}
    
    
    @app.websocket("/items/{item_id}")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Sep 29 03:29:38 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  9. tests/test_dependency_contextvars.py

    ):
        response = await call_next(request)
        response.headers["custom"] = "foo"
        return response
    
    
    @app.get("/user", dependencies=[Depends(set_up_request_state_dependency)])
    def get_user():
        request_state = legacy_request_state_context_var.get()
        assert request_state
        return request_state["user"]
    
    
    client = TestClient(app)
    
    
    def test_dependency_contextvars():
        """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/user/exbhv/GroupBhv.java

        protected String asEsIndex() {
            if (indexName == null) {
                final String name = ComponentUtil.getFessConfig().getIndexUserIndex();
                indexName = super.asEsIndex().replaceFirst(Pattern.quote("fess_user"), name);
            }
            return indexName;
        }
    
        @Override
        protected <RESULT extends Group> RESULT createEntity(final Map<String, Object> source, final Class<? extends RESULT> entityType) {
            try {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top