Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

saml2aws

$ saml2aws Community Med Risk
Versent · Cloud & Infra · MIT · macos / linux / windows

Versent's saml2aws logs into enterprise SAML 2.0 identity providers and exchanges SAML assertions for temporary AWS STS credentials. Supports --skip-prompt, --quiet, and --credential-process JSON output for ~/.aws/config, though IdP MFA flows often require human interaction.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install saml2aws
CLI vs MCP Decision CLI Only

saml2aws exchanges local SAML assertions for AWS STS tokens on the user's workstation; local IdP credential brokering cannot live in an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Supports --skip-prompt and --credential-process JSON output, but enterprise SAML MFA/CAPTCHA/browser challenges frequently block headless agent runs.

  • Supports --skip-prompt --quiet --credential-process JSON output
  • Interactive MFA/SSO prompts block autonomous agents if session expired
Trust & Safety 19 / 25

Issues short-lived AWS STS credentials and integrates with OS keychain, though --credential-process prints secret keys to stdout if invoked directly.

  • Replaces static IAM user keys with time-bounded STS credentials
Setup & Portability 13 / 15

Single Go binary via Homebrew and GitHub releases across macOS, Linux, and Windows, though requires ~/.saml2aws configuration.

  • Available via brew install saml2aws and release binaries
Utility & Efficiency 10 / 15

Important bridge for legacy SAML 2.0 corporate IdPs, though AWS IAM Identity Center (aws sso / aws-sso) is increasingly replacing SAML2AWS.

  • Supports Okta, ADFS, Ping, OneLogin, and AzureAD SAML providers
Maintenance & Lineage 7 / 10

Community-maintained Go project (Versent/saml2aws) under MIT license.

  • MIT-licensed Versent/saml2aws repository
Docs & Verifiability 7 / 10

Extensive provider-specific README guides, though flag behavior varies slightly across IdP drivers.

  • Documented in GitHub README and --help

Security, Auth & Guardrails

Auth Modes
Config File OS Keychain OAuth Browser
Credential Storage

Stores IdP config in ~/.saml2aws, writes temporary STS tokens to ~/.aws/credentials (or outputs JSON via --credential-process), and optionally caches IdP passwords in OS keychain.

Side Effects
Read-Only Local Write
Cost & Quotas

MIT open-source CLI; free to use.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# saml2aws Agent Rules
- Always pass `--skip-prompt` so `saml2aws` fails fast instead of hanging on stdin prompts.
- Never print or log `--credential-process` JSON output containing `SecretAccessKey` or `SessionToken`.
- If MFA or browser auth is required, pause and ask the user to run `saml2aws login`.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured SAML roles for a profile
saml2aws list-roles --profile my-profile --skip-prompt

Lists available AWS IAM roles associated with your SAML session.

Emit AWS credential_process JSON non-interactively
saml2aws login --profile my-profile --skip-prompt --quiet --credential-process

Returns temporary STS credentials as JSON when IdP session/MFA does not prompt.

Strengths for Agents

  • + --skip-prompt --quiet --credential-process integrates cleanly with ~/.aws/config.
  • + Supports dozens of enterprise SAML 2.0 identity providers.
  • + Issues short-lived STS credentials instead of static IAM keys.

Caveats & Pitfalls

  • ! Interactive MFA challenges and browser-based IdP logins frequently block headless agents.
  • ! Running --credential-process directly emits SecretAccessKey and SessionToken to stdout.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI