Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetRolePolicy (0.13 sec)

  1. cmd/sts-handlers.go

    	// defined parameter to disambiguate the intended IDP in this STS request.
    	roleArn := openid.DummyRoleARN
    	roleArnStr := r.Form.Get(stsRoleArn)
    	if roleArnStr != "" {
    		var err error
    		roleArn, _, err = globalIAMSys.GetRolePolicy(roleArnStr)
    		if err != nil {
    			writeSTSErrorResponse(ctx, w, ErrSTSInvalidParameterValue,
    				fmt.Errorf("Error processing %s parameter: %v", stsRoleArn, err))
    			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)
  2. cmd/iam.go

    	return err
    }
    
    // HasRolePolicy - returns if a role policy is configured for IAM.
    func (sys *IAMSys) HasRolePolicy() bool {
    	return len(sys.rolesMap) > 0
    }
    
    // GetRolePolicy - returns policies associated with a role ARN.
    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users.go

    			if policy.Name == "consoleAdmin" {
    				effectivePolicy = policy.Definition
    				break
    			}
    		}
    
    	case roleArn != "":
    		_, policy, err := globalIAMSys.GetRolePolicy(roleArn)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		policySlice := newMappedPolicy(policy).toSlice()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
Back to top