Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 462 for useSwr (0.04 seconds)

  1. tests/test_schema_compat_pydantic_v2.py

        app = FastAPI()
    
        class PlatformRole(str, Enum):
            admin = "admin"
            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
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java

            // Test with single role - not matching
            assertFalse(fessUserBean.hasRole("user"));
    
            // Test with multiple roles
            testUser.setRoleNames(new String[] { "admin", "user", "manager" });
            assertTrue(fessUserBean.hasRole("admin"));
            assertTrue(fessUserBean.hasRole("user"));
            assertTrue(fessUserBean.hasRole("manager"));
            assertFalse(fessUserBean.hasRole("guest"));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

            List<User> users = new ArrayList<>();
    
            // Create test users
            for (int i = 0; i < 10; i++) {
                users.add(createTestUser("user" + i, "User " + i));
            }
    
            // Perform sequential operations
            for (User user : users) {
                chain.update(user);
                chain.changePassword(user.getName(), "newpass" + user.getName());
                chain.load(user);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java

        // Helper method to create test user
        private User createTestUser(String username, String password) {
            User user = new User();
            user.setName(username);
            user.setPassword(password);
            user.setRoles(new String[] { "role1", "role2" });
            user.setGroups(new String[] { "group1", "group2" });
            return user;
        }
    
        // Test LdapManager implementation
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  5. docs/en/docs/tutorial/security/simple-oauth2.md

    ```JSON
    {
      "detail": "Not authenticated"
    }
    ```
    
    ### Inactive user { #inactive-user }
    
    Now try with an inactive user, authenticate with:
    
    User: `alice`
    
    Password: `secret2`
    
    And try to use the operation `GET` with the path `/users/me`.
    
    You will get an "Inactive user" error, like:
    
    ```JSON
    {
      "detail": "Inactive user"
    }
    ```
    
    ## Recap { #recap }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/index.md

    ///
    
    ## Advanced User Guide { #advanced-user-guide }
    
    There is also an **Advanced User Guide** that you can read later after this **Tutorial - User guide**.
    
    The **Advanced User Guide** builds on this one, uses the same concepts, and teaches you some extra features.
    
    But you should first read the **Tutorial - User Guide** (what you are reading right now).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Mar 07 09:29:03 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/helper/ActivityHelper.java

         * Log the login activity.
         * @param user The user.
         */
        public void login(final OptionalThing<FessUserBean> user) {
            final Map<String, String> valueMap = new LinkedHashMap<>();
            valueMap.put("action", Action.LOGIN.name());
            valueMap.put("user", user.map(FessUserBean::getUserId).orElse("-"));
            valueMap.put("permissions",
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 11:45:43 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

            permissionList.add("2aaa");
    
            allowEmptyPermission.set(true);
            assertTrue(ldapManager.allowEmptyGroupAndRole(user));
            allowEmptyPermission.set(false);
            assertTrue(ldapManager.allowEmptyGroupAndRole(user));
    
            permissionList.clear();
            permissionList.add("Raaa");
    
            allowEmptyPermission.set(true);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/entity/ChatSession.java

            this.sessionId = sessionId;
        }
    
        /**
         * Gets the user ID.
         *
         * @return the user ID
         */
        public String getUserId() {
            return userId;
        }
    
        /**
         * Sets the user ID.
         *
         * @param userId the user ID
         */
        public void setUserId(final String userId) {
            this.userId = userId;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 07 01:53:06 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  10. docs/en/docs/fastapi-people.md

    <div class="user-list user-list-center">
    
    {% for user in people.last_month_experts[:10] %}
    
    {% if user.login not in skip_users %}
    
    <div class="user"><a href="{{ user.url }}"><div class="avatar-wrapper"><img src="{{ user.avatarUrl }}"/></div><div class="title">@{{ user.login }}</div></a> <div class="count">Questions replied: {{ user.count }}</div></div>
    
    {% endif %}
    
    {% endfor %}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 9K bytes
    - Click Count (0)
Back to Top