Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CheckKey (0.05 sec)

  1. cmd/signature-v4-utils.go

    			// to retry with 503 errors when server is coming up.
    			return auth.Credentials{}, false, ErrIAMNotInitialized
    		}
    
    		// Check if the access key is part of users credentials.
    		u, ok, err := globalIAMSys.CheckKey(r.Context(), accessKey)
    		if err != nil {
    			return auth.Credentials{}, false, ErrIAMNotInitialized
    		}
    		if !ok {
    			// Credentials could be valid but disabled - return a different
    			// error in such a scenario.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. cmd/iam.go

    				iamLogIf(ctx, logErr)
    			}
    		}
    	}
    	return skipped, nil
    }
    
    // CheckKey validates the incoming accessKey
    func (sys *IAMSys) CheckKey(ctx context.Context, accessKey string) (u UserIdentity, ok bool, err error) {
    	if !sys.Initialized() {
    		return u, false, nil
    	}
    
    	if accessKey == globalActiveCred.AccessKey {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top