Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetNewCredentialsWithMetadata (0.32 sec)

  1. internal/auth/credentials.go

    		return "", err
    	}
    
    	s := base64.RawStdEncoding.EncodeToString(key)
    	return strings.ReplaceAll(s, "/", "+"), nil
    }
    
    // GetNewCredentialsWithMetadata generates and returns new credential with expiry.
    func GetNewCredentialsWithMetadata(m map[string]interface{}, tokenSecret string) (Credentials, error) {
    	accessKey, secretKey, err := GenerateCredentials()
    	if err != nil {
    		return Credentials{}, err
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    	}
    
    	secret, err := getTokenSigningKey()
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    
    	cred, err := auth.GetNewCredentialsWithMetadata(claims, secret)
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    
    	// Set the parent of the temporary access key, so that it's access
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  3. cmd/sftp-server-driver.go

    			}
    			claims := make(map[string]interface{})
    			claims[expClaim] = UTCNow().Add(expiryDur).Unix()
    			for k, v := range f.permissions.CriticalOptions {
    				claims[k] = v
    			}
    
    			cred, err := auth.GetNewCredentialsWithMetadata(claims, globalActiveCred.SecretKey)
    			if err != nil {
    				return nil, err
    			}
    
    			// Set the parent of the temporary access key, this is useful
    			// in obtaining service accounts by this cred.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  4. cmd/ftp-server-driver.go

    			}
    			claims := make(map[string]interface{})
    			claims[expClaim] = UTCNow().Add(expiryDur).Unix()
    			claims[ldapUser] = targetUser
    			claims[ldapUserN] = ctx.Sess.LoginUser()
    
    			cred, err := auth.GetNewCredentialsWithMetadata(claims, globalActiveCred.SecretKey)
    			if err != nil {
    				return nil, err
    			}
    
    			// Set the parent of the temporary access key, this is useful
    			// in obtaining service accounts by this cred.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
Back to top