Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for GetUser (0.05 sec)

  1. tests/transaction_test.go

    		t.Fatalf("Should find saved record")
    	}
    }
    
    func TestNestedTransactionWithBlock(t *testing.T) {
    	var (
    		user  = *GetUser("transaction-nested", Config{})
    		user1 = *GetUser("transaction-nested-1", Config{})
    		user2 = *GetUser("transaction-nested-2", Config{})
    	)
    
    	if err := DB.Transaction(func(tx *gorm.DB) error {
    		tx.Create(&user)
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Sep 14 12:58:29 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. tests/prepared_stmt_test.go

    	}
    
    	ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    	defer cancel()
    	txCtx := tx.WithContext(ctx)
    
    	user := *GetUser("prepared_stmt", Config{})
    
    	txCtx.Create(&user)
    
    	var result1 User
    	if err := txCtx.Find(&result1, user.ID).Error; err != nil {
    		t.Fatalf("no error should happen but got %v", err)
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:02:05 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

            if (userGroups == null) {
                userGroups = getDefaultGroupsAsArray();
            }
            return userGroups;
        }
    
        public OpenIdUser getUser() {
            return new OpenIdUser(getUserId(), getUserGroups(), getDefaultRolesAsArray());
        }
    
        protected static String[] getDefaultGroupsAsArray() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. cmd/iam.go

    	case <-sys.configLoaded:
    	default:
    		err = sys.store.LoadUser(ctx, accessKey)
    		loadUserCalled = true
    	}
    
    	u, ok = sys.store.GetUser(accessKey)
    	if !ok && !loadUserCalled {
    		err = sys.store.LoadUser(ctx, accessKey)
    		loadUserCalled = true
    
    		u, ok = sys.store.GetUser(accessKey)
    	}
    
    	if !ok && loadUserCalled && err != nil {
    		iamLogOnceIf(ctx, err, accessKey)
    
    		// return 503 to application
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

                // check file size
                responseData.setContentLength(file.getSize());
                checkMaxContentLength(responseData);
    
                if (file.getUser() != null) {
                    responseData.addMetaData(FTP_FILE_USER, file.getUser());
                }
                if (file.getGroup() != null) {
                    responseData.addMetaData(FTP_FILE_GROUP, file.getGroup());
                }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:41:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticator.java

        }
    
        @Override
        public void resolveCredential(final LoginCredentialResolver resolver) {
            resolver.resolve(OpenIdConnectCredential.class, credential -> OptionalEntity.of(credential.getUser()));
        }
    
        @Override
        public ActionResponse getResponse(final SsoResponseType responseType) {
            return null;
        }
    
        @Override
        public String logout(final FessUserBean user) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                        appendJson("user-info-id", entity.getUserInfoId(), buf).append(',');
                        appendJson("user-session-id", entity.getUserSessionId(), buf).append(',');
                        appendJson("user", entity.getUser(), buf).append(',');
                        appendJson("search-word", entity.getSearchWord(), buf).append(',');
                        appendJson("hit-count", entity.getHitCount(), buf).append(',');
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    	if accessKey == globalActiveCred.AccessKey {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    	user, exists := globalIAMSys.GetUser(ctx, accessKey)
    	if exists && (user.Credentials.IsTemp() || user.Credentials.IsServiceAccount()) {
    		// Updating STS credential is not allowed, and this API does not
    		// support updating service accounts.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    `, bucket, bucket))
    
    	err = s.adm.AddCannedPolicy(ctx, policy, policyBytes)
    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	accessKey, secretKey := mustGenerateCredentials(c)
    	err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    	if err != nil {
    		c.Fatalf("Unable to set user: %v", err)
    	}
    
    	_, err = s.adm.AttachPolicy(ctx, madmin.PolicyAssociationReq{
    		Policies: []string{policy},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  10. cmd/iam-store.go

    // HasWatcher - returns if the storage system has a watcher.
    func (store *IAMStoreSys) HasWatcher() bool {
    	_, ok := store.IAMStorageAPI.(iamStorageWatcher)
    	return ok
    }
    
    // GetUser - fetches credential from memory.
    func (store *IAMStoreSys) GetUser(user string) (UserIdentity, bool) {
    	cache := store.rlock()
    	defer store.runlock()
    
    	u, ok := cache.iamUsersMap[user]
    	if !ok {
    		// Check the sts map
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top