Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 351 for user7 (0.11 sec)

  1. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            // Make attempts from same IP with different users
            for (int i = 1; i <= 5; i++) {
                assertTrue(rateLimiter.checkAttempt("user" + i, ip), "Attempt " + i + " should be allowed");
                rateLimiter.recordFailure("user" + i, ip);
            }
    
            // 6th attempt from same IP should be blocked
            assertFalse(rateLimiter.checkAttempt("user6", ip), "Should block after IP rate limit");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/auth/chain/AuthenticationChainTest.java

            User user1 = createTestUser("user1", "User One");
            User user2 = createTestUser("user2", "User Two");
            User user3 = createTestUser("user3", "User Three");
    
            chain.update(user1);
            chain.update(user2);
            chain.update(user3);
    
            assertEquals(3, chain.updateCalls.size());
            assertEquals(user1, chain.updateCalls.get(0));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    			return
    		}
    		for user := range users {
    			checkedUserList = append(checkedUserList, user)
    		}
    		checkedUserList = append(checkedUserList, globalActiveCred.AccessKey)
    	} else {
    		for _, user := range users {
    			// Validate the user
    			_, ok := globalIAMSys.GetUser(ctx, user)
    			if !ok {
    				continue
    			}
    			checkedUserList = append(checkedUserList, user)
    		}
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
  4. cmd/user-provider-utils.go

    // getUserWithProvider - returns the appropriate internal username based on the user provider.
    // if validate is true, an error is returned if the user does not exist.
    func getUserWithProvider(ctx context.Context, userProvider, user string, validate bool) (string, error) {
    	switch userProvider {
    	case madmin.BuiltinProvider:
    		if validate {
    			if _, ok := globalIAMSys.GetUser(ctx, user); !ok {
    				return "", errNoSuchUser
    			}
    		}
    		return user, nil
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/auth/AuthenticationManagerTest.java

            User user3 = createTestUser("user3");
    
            TestAuthenticationChain chain1 = new TestAuthenticationChain();
            TestAuthenticationChain chain2 = new TestAuthenticationChain();
            TestAuthenticationChain chain3 = new TestAuthenticationChain();
    
            chain1.loadResult = user1;
            chain2.loadResult = user2;
            chain3.loadResult = user3;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 14K bytes
    - Viewed (0)
  6. tests/generics_test.go

    		t.Errorf("found invalid user, got %v, expect %v", u, user)
    	}
    
    	if u, err := gorm.G[User](DB).Where("name = ?", user.Name).Take(ctx); err != nil {
    		t.Fatalf("failed to find user, got error: %v", err)
    	} else if u.Name != user.Name || u.ID != user.ID {
    		t.Errorf("found invalid user, got %v, expect %v", u, user)
    	}
    
    	if u, err := gorm.G[User](DB).Select("name").Where("name = ?", user.Name).First(ctx); err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users-race_test.go

    		accessKey, secretKey := mustGenerateCredentials(c)
    		err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    		}
    
    		userReq := madmin.PolicyAssociationReq{
    			Policies: []string{policy},
    			User:     accessKey,
    		}
    		if _, err := s.adm.AttachPolicy(ctx, userReq); err != nil {
    			c.Fatalf("Unable to attach policy: %v", err)
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/security/get-current-user.md

    # Get Current User { #get-current-user }
    
    In the previous chapter the security system (which is based on the dependency injection system) was giving the *path operation function* a `token` as a `str`:
    
    {* ../../docs_src/security/tutorial001_an_py39.py hl[12] *}
    
    But that is still not that useful.
    
    Let's make it give us the current user.
    
    ## Create a user model { #create-a-user-model }
    
    First, let's create a Pydantic user model.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SIDCacheImplTest.java

    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/ldap/LdapUserTest.java

            // Test with different names
            LdapUser user2 = new LdapUser(testEnv, "anotheruser");
            assertEquals("anotheruser", user2.getName());
    
            // Test with empty name
            LdapUser user3 = new LdapUser(testEnv, "");
            assertEquals("", user3.getName());
    
            // Test with null name
            LdapUser user4 = new LdapUser(testEnv, null);
            assertNull(user4.getName());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top