aws-adfs

Aws-adfs is a command-line utility with support for multi-factor authentication (MFA) that makes it easier to authenticate against Active Directory Federation Services (ADFS) using the AWS CLI. It eliminates the requirement to keep the user's real credentials by enabling re-login to AWS SecurityToken Service (STS) without inputting credentials for a protracted length of time. It interacts with several MFA providers, such as Duo Security, Symantec VIP, RSA SecurID, and Azure AD MFA, and it supports automation tools like Ansible.

aws-adfs is a command-line tool created to streamline AWS CLI authentication against Active Directory Federation Services (ADFS) with support for multi-factor authentication (MFA). It simplifies the process of re-logging into the AWS Security Token Service (STS) without requiring users to enter their credentials repeatedly, providing an extended login session. This eliminates the need to store the user's actual credentials, which can enhance security. Additionally, aws-adfs supports automation tools like Ansible and integrates with various MFA providers, including Duo Security, Symantec VIP, RSA SecurID, and Azure AD MFA. This tool aims to improve the authentication process and security when working with AWS resources.

Installation

User Local Installation with Pipx

 

User Local Installation with Pip

 

Note: Add $HOME/.local/bin to your PATH

System Wide Installation

 

Virtual Environments

 

Windows 10

1.      Install the latest supported Visual C++downloads from Microsoft.

2.      Install Python 3.7 from the Microsoft Store.

3.      Start PowerShell as Administrator.

4.      Go to C:\Program Files.

5.      Create a virtual environment:

 

6.      Install aws-adfs:

 

7.      Run it:

 
Table of Contents: