Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSTSConditionValues (0.14 sec)

  1. cmd/bucket-policy.go

    	// operation is allowed only for owner.
    	return args.IsOwner
    }
    
    // NewPolicySys - creates new policy system.
    func NewPolicySys() *PolicySys {
    	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
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    				return
    			}
    		}
    
    		if !globalIAMSys.doesPolicyAllow(p, policy.Args{
    			DenyOnly:        true,
    			Action:          policy.AssumeRoleWithWebIdentityAction,
    			ConditionValues: getSTSConditionValues(r, "", cred),
    			Claims:          cred.Claims,
    		}) {
    			writeSTSErrorResponse(ctx, w, ErrSTSAccessDenied, errors.New("this user does not have enough permission"))
    			return
    		}
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top