We are trying to configure AWS CLI integration with Azure. We have used the https://github.com/sportradar/aws-azure-login which works great for the GUI mode but we are looking for an experience from CLI. The following is the experience we are looking for. Any guidance to a new package or update the aws-azure-login package will be helpful.
User submits her Azure AD username/password credentials to the CLI.
The CLI uses the credentials to authenticate against Azure, which returns either a token or another challenge for the end user (e.g., MFA). If another challenge is returned, the CLI waits for input from the user (e.g., MFA code) and submits the input to Azure AD MFA input.
If successful, Azure AD returns a token. The CLI submits the returned token & SAML2 request to Azure AD SAML endpoint and gets back from Azure AD a SAML2 response.
The CLI then submits the SAML2 response to AWS SAML endpoint and gets back AWS IAM temporary credentials.