Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for DurationSeconds (0.19 sec)

  1. internal/config/identity/openid/jwt_test.go

    		},
    		{
    			reqURL:    "http://127.0.0.1:8443/?DurationSeconds=9s",
    			expectErr: true,
    		},
    		{
    			reqURL:    "http://127.0.0.1:8443/?DurationSeconds=31536001",
    			expectErr: true,
    		},
    		{
    			reqURL:    "http://127.0.0.1:8443/?DurationSeconds=800",
    			expectErr: true,
    		},
    		{
    			reqURL:   "http://127.0.0.1:8443/?DurationSeconds=901",
    			duration: time.Duration(901) * time.Second,
    		},
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    	return &PolicySys{}
    }
    
    func getSTSConditionValues(r *http.Request, lc string, cred auth.Credentials) map[string][]string {
    	m := make(map[string][]string)
    	if d := r.Form.Get("DurationSeconds"); d != "" {
    		m["DurationSeconds"] = []string{d}
    	}
    	return m
    }
    
    func getConditionValues(r *http.Request, lc string, cred auth.Credentials) map[string][]string {
    	currTime := UTCNow()
    
    	var (
    		username = cred.AccessKey
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. docs/sts/web-identity.md

    | :--        | :--      |
    | *Type*     | *String* |
    | *Required* | *Yes*    |
    
    ### DurationSeconds
    
    The duration, in seconds. The value can range from 900 seconds (15 minutes) up to 365 days. If value is higher than this setting, then operation fails. By default, the value is set to 3600 seconds. If no *DurationSeconds* is specified expiry seconds is obtained from *WebIdentityToken*.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  4. docs/sts/assume-role.go

    			bs, err := io.ReadAll(f)
    			if err != nil {
    				log.Fatalf("Error reading session policy file: %v", err)
    			}
    			policy = string(bs)
    		}
    		stsOpts.Policy = policy
    	}
    	if expiryDuration != 0 {
    		stsOpts.DurationSeconds = int(expiryDuration.Seconds())
    	}
    	li, err := cr.NewSTSAssumeRole(stsEndpoint, stsOpts)
    	if err != nil {
    		log.Fatalf("Error initializing STS Identity: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 16:09:55 GMT 2024
    - 4K bytes
    - Viewed (1)
  5. docs/sts/ldap.md

    | Params     | Value    |
    | :--        | :--      |
    | _Type_     | _String_ |
    | _Required_ | _Yes_    |
    
    ### DurationSeconds
    
    The duration, in seconds. The value can range from 900 seconds (15 minutes) up to 365 days. If value is higher than this setting, then operation fails. By default, the value is set to 3600 seconds.
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.4K bytes
    - Viewed (1)
  6. cmd/sts-handlers.go

    	stsRoleArn                = "RoleArn"
    	stsWebIdentityToken       = "WebIdentityToken"
    	stsWebIdentityAccessToken = "WebIdentityAccessToken" // only valid if UserInfo is enabled.
    	stsDurationSeconds        = "DurationSeconds"
    	stsLDAPUsername           = "LDAPUsername"
    	stsLDAPPassword           = "LDAPPassword"
    
    	// STS API action constants
    	clientGrants        = "AssumeRoleWithClientGrants"
    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)
  7. cmd/admin-handlers-users_test.go

     "Version": "2012-10-17",
     "Statement": [
      {
       "Effect": "Deny",
       "Action": [
         "admin:CreateServiceAccount",
         "admin:UpdateServiceAccount"
       ],
       "Condition": {"NumericGreaterThan": {"svc:DurationSeconds": "3600"}}
      },
      {
       "Effect": "Allow",
       "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::%s/*"
       ]
      }
     ]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    					return
    				}
    			}
    		}
    	}
    }
    
    func addExpirationToCondValues(exp *time.Time, condValues map[string][]string) {
    	if exp == nil {
    		return
    	}
    	condValues["DurationSeconds"] = []string{strconv.FormatInt(int64(exp.Sub(time.Now()).Seconds()), 10)}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    	policyTmpl := `{
     "Version": "2012-10-17",
     "Statement": [
      {
        "Effect": "Deny",
        "Action": ["sts:AssumeRoleWithWebIdentity"],
        "Condition": {"NumericGreaterThan": {"sts:DurationSeconds": "%d"}}
      },
      {
       "Effect": "Allow",
       "Action": [
        "s3:PutObject",
        "s3:GetObject",
        "s3:ListBucket"
       ],
       "Resource": [
        "arn:aws:s3:::%s/*"
       ]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
Back to top