November 23, 2026

Should Your Team Still Rely on saml2aws for AWS CLI Access?

Jegan Selvaraj
Founder & CEO, Infisign
Talk with Expert

TL;DR

AWS access should be easy for developers, but it should never be careless. Your team needs to work quickly, while your security team needs to know who can access cloud resources and what they can do.

This is why tools like saml2aws became popular. They help developers sign in through a company identity provider and get temporary AWS credentials without managing permanent access keys.

But AWS now offers another option through IAM Identity Center. So, is saml2aws still worth using, or should your team move to the native AWS CLI login?

Let's look at how both options work, where problems start, and what your team should check before making a decision.

What saml2aws Actually Does Between Your IdP and AWS

Think of saml2aws as a bridge between your company login system and AWS. Your identity provider checks who you are, while AWS checks which resources you can access. The tool connects these two steps.

How saml2aws handles your login

When you use an aws saml auth cli tool like saml2aws, it starts an authentication process with your company's identity provider. It then gets a SAML response and uses it to request temporary AWS credentials.

  • Identity check: You sign in through Okta, Microsoft Entra ID, ADFS or another supported provider. Your company can also ask you to complete MFA before allowing access.
  • SAML response: The tool receives an assertion that carries your identity and AWS role details. This tells AWS which role you want to use.
  • Temporary credentials: AWS STS checks the request and returns temporary security credentials. Your AWS CLI can then use those credentials to access approved resources.

What happens after you sign in?

Getting credentials is only one part of the process. You also need to understand how saml2aws creates saml to aws sts keys and where those credentials go after authentication.

  • Profile storage: saml2aws can save credentials in your AWS credentials file. You can then use a named profile when running AWS commands.
  • Role selection: Developers can work with different AWS accounts and roles. This makes it easier to move between development, testing and production.
  • Access control: AWS IAM policies still decide what you can do. saml2aws does not give you permission to access resources on its own.

Getting saml2aws Running on Mac, Linux and Windows

Installing saml2aws is not very difficult. You need AWS CLI, a supported identity provider and an AWS role that allows SAML federation.

The commands are different across operating systems, but the main setup stays almost the same.

Install the tool on your operating system

Before you install saml2aws, choose the installation method that works with your machine. Always check the official project releases before installing a version in a production environment.

  • macOS installation: If you use Homebrew, open Terminal and run brew install saml2aws. After installation, run saml2aws --version to confirm that the command works.
  • Windows installation: If your company uses Chocolatey, open PowerShell and run choco install saml2aws. Check your system PATH if Windows cannot find the command after installation.
  • Linux installation: Download the correct binary for your Linux system from the official GitHub releases page. Extract it, move it into a directory such as /usr/local/bin, and give it permission to run.

Set up saml2aws on Windows

If you are checking how to install saml2aws on windows, start by making sure Windows can find the executable. This is important when setting up the tool for your development environment.

  • Check installation: Open PowerShell and run saml2aws --version. This confirms that Windows can find the installed program.
  • Check your PATH: If the command is not recognized, check whether the installation folder is included in your system PATH. Close and reopen PowerShell after making changes.
  • Prepare AWS access: Make sure AWS CLI is installed and your company has configured the required SAML role. You will need these details before completing authentication.

Configure your identity provider and test access

Once the tool is installed, you need to connect it to your company login system. This is where you set up your aws cli saml login process using the details supplied by your AWS or identity administrator.

  • Create your profile: Run saml2aws configure and enter your identity provider URL, username, provider type and AWS region. Save the configuration under a clear profile name such as development.
  • Complete authentication: Run saml2aws login --profile development and follow the login steps. Complete the MFA challenge if your company requires it.
  • Check your AWS identity: Run aws sts get-caller-identity --profile development to see which account and identity are active. 

Where saml2aws Quietly Breaks at Enterprise Scale

A tool that works for a small team may create problems when hundreds of people start using it. The issue is not always the software itself. It can also come from different login rules, expired credentials and poorly managed permissions.

Login changes can affect your developers

The saml2aws project points out that most identity provider integrations, apart from Okta, use screen scraping for parts of the login process. This means changes to an identity provider's login page can affect authentication.

  • Login problems: An identity provider may change its login page or MFA screen. The old authentication flow may stop working until the integration is updated.
  • Different provider rules: Every identity provider handles login and MFA in its own way. Your team may need extra testing when it supports several providers.
  • Support workload: A login issue that affects one developer is easy to handle. The same issue across hundreds of developers can delay cloud work and increase IT support requests.

Temporary credentials still need proper management

Temporary credentials are safer than permanent keys, but they still have an expiry time. Your team needs a clear plan for renewal, storage and access removal.

  • Expired sessions: The default STS session duration is up to one hour. AWS role settings can allow longer sessions, but the maximum depends on the role and federation configuration.
  • Local storage: Credentials saved on a developer's machine need protection. Poor file permissions or an infected device can expose them.
  • Access removal: Disabling an employee's account stops future authentication, but already-issued AWS credentials may remain valid until they expire. Your security team should plan for this gap.

When aws sso login Is the Better Path and When It Isn't

AWS IAM Identity Center gives organizations a native way to manage access across AWS accounts. Developers can use the AWS CLI to sign in without depending on a separate SAML login tool.

When native AWS SSO makes more sense

You can start by creating an SSO profile with the AWS CLI. For teams that want aws cli sso login without relying on a separate SAML login tool, this is a practical option. Your administrator will need to provide the Identity Center details and the correct account permissions.

  • Configure your profile: Run aws configure sso and enter your SSO session name, start URL and region. 
  • Sign in: Run aws sso login --profile development to open the browser authentication process. Complete the company login and MFA steps when asked.
  • Check your access: Run aws sts get-caller-identity --profile development to confirm the active AWS identity. The CLI can retrieve fresh AWS credentials while your SSO session remains valid.

When saml2aws is still useful

  • Existing SAML setup: Your company may already use direct SAML federation with AWS IAM roles. In this case, saml2aws can continue to support the current login process.
  • Older workflows: Some scripts and developer tools may depend on existing saml2aws profiles. Replacing them without testing can break daily work.
  • Migration effort: Moving to Identity Center may require changes to account assignments, roles and access policies. Plan the move properly instead of changing everything at once.

What Your Identity Layer Needs Before Any CLI Tool Is Safe

Your CLI tool cannot fix a weak identity system. It can only follow the rules that your identity provider and AWS permissions give it.

Before choosing a tool, check whether your company has the right controls in place. Following access best practices can help your team build a clear process for granting, reviewing and removing access.

Keep user access under control

Every employee should get access based on their job. When their role changes or they leave, their permissions should change too.

  • New employees: Give new team members only the access they need. Their permissions should match their job and approved responsibilities.
  • Role changes: Update permissions when someone moves to another team. Old access should not stay active without a clear business reason.
  • Leaving employees: Remove access when an employee leaves the company. This should happen through a central process, not through manual changes on every developer's machine.

Protect credentials and track activity

Strong authentication is important, but your team also needs to watch what happens after login. 

  • MFA protection: Require strong authentication for sensitive AWS access. Where possible, use phishing-resistant methods such as security keys or passkeys.
  • Least privilege: Give developers only the permissions they need for their work. A developer working in a test account should not automatically get production administrator access.
  • Activity records: Use AWS CloudTrail and identity provider logs to track access. These records help your team understand who signed in and what happened afterward.

Fix the Identity Layer First, Then Pick the CLI Tool

The choice between saml2aws and aws sso login should depend on your current identity setup. A newer tool does not automatically make your company more secure if user access is still poorly managed.

Start by checking how your team gives, reviews and removes access. If your AWS environment uses SAML federation, understanding federated identity can also help you decide which login approach fits your setup.

Choose the tool that fits your AWS setup

Your team should look at its existing accounts, login rules and developer needs before making a change. A small test can help you find problems before a full migration.

  • Use Identity Center: If your company already manages AWS accounts through IAM Identity Center, make aws sso login your normal developer login. It offers native CLI support and central account assignments.
  • Keep saml2aws when needed: If your company still depends on direct SAML federation, saml2aws may remain useful. Keep its version updated and test its identity provider integration.
  • Use workload roles for automation: CI/CD pipelines and cloud workloads should not depend on a developer's interactive login. Use IAM roles and suitable workload identity methods instead.

How SAML role assumption works

AWS supports SAML-based role assumption through its Security Token Service. This is how aws assume role with saml lets an authenticated user request temporary credentials for an IAM role that trusts the configured SAML provider.

  • Role trust policy: The IAM role must trust the SAML identity provider. This trust relationship controls which federated identities can request access.
  • STS request: AWS receives the SAML assertion through the AssumeRoleWithSAML API. It checks the assertion and the role's trust policy before issuing credentials.
  • Temporary access: AWS returns temporary credentials with the permissions attached to the assumed role. These credentials can then be used by the AWS CLI and supported SDKs.

Give your identity system a bigger role

AWS access is only one part of your company's identity needs. Your employees and customers may also need access to SaaS apps, internal platforms and business services. For teams that need tighter control over sensitive accounts and elevated permissions, privileged access can add another layer of oversight.

  • Central access rules: Keep identity and permission rules clear across connected systems. This makes it easier to see who has access and why.
  • Regular reviews: Check user access on a regular basis. Remove permissions that are no longer needed instead of waiting for a security problem.
  • Better user experience: Security should not make normal work harder than it needs to be. Give people a clear login process that also protects company resources.

Where Infisign UniFed fits

Infisign UniFed helps businesses manage customer and partner identity across applications. It brings sign-in, federation and access controls into one platform, helping teams offer a smoother login experience without losing control of security. Teams connecting cloud environments can also explore the AWS integration.

  • Universal Federation: Connect different identity providers and applications. This helps customers use familiar login options across connected services.
  • Passwordless Authentication: Support methods such as magic links, OTP and device passkeys. These options can reduce password-related problems for users.
  • Access and User Management: Use MFA, SCIM provisioning and access controls to manage users. This helps teams handle account changes and protect connected applications.

Book an Infisign UniFed demo today to see how its federation and customer identity features can support your applications. Explore the platform with the team and find an approach that fits your security and access needs.

FAQ

1. How do I install saml2aws on Windows?

Install Chocolatey and run choco install saml2aws in PowerShell. Then run saml2aws --version to check installation and configure your identity provider.

2. What is the difference between saml2aws and aws sso login?

saml2aws uses SAML federation to request AWS credentials. aws sso login uses AWS IAM Identity Center and its native OIDC-based authentication process.

3. How long do saml2aws credentials last?

The default STS session lasts up to one hour. AWS role settings may allow sessions up to twelve hours, depending on federation and role limits.

4. Can saml2aws work with AWS IAM Identity Center?

saml2aws supports direct SAML federation, not native Identity Center OIDC login. Use aws sso login for standard IAM Identity Center profiles.

5. Does saml2aws support MFA?

Yes, but support depends on your identity provider. Okta, Keycloak and other integrations have different MFA options, while the documented Auth0 integration has limitations.

Step into Future of digital Identity and Access Management

Talk with Expert
Jegan Selvaraj
Founder & CEO, Infisign

Jegan Selvaraj is a serial tech-entrepreneur with two decades of experience driving innovation and transforming businesses through impactful solutions. With a solid foundation in technology and a passion for advancing digital security, he leads Infisign's mission to empower businesses with secure and efficient digital transformation. His commitment to leveraging advanced technologies ensures enterprises and startups stay ahead in a rapidly evolving digital landscape.

Table of Contents

About Infisign

Infisign is a modern Identity & Access Management platform that secures every app your employees and partners use.
Zero-Trust Architecture
Trusted by Fortune 500 Companies
SOC 2 Type II Certified
Fast Migration from Any IAM
6000+ App Integrations
Save up to 60% on IAM Costs
See Infisign in Action