onelogin / onelogin-python-aws-assume-role

MIT License
58 stars 52 forks source link

Display Account Alias with AWS Account ID #55

Open jeremyciak opened 4 years ago

jeremyciak commented 4 years ago

The SAML assertion in the OneLogin GUI for the AWS Multi Account app displays the AWS account alias with the account ID in parenthesis next to it. For this CLI utility only the account ID is returned. Is there a way to surface the AWS account alias from the SAML assertion to display in the utility? I would gladly help contribute a PR but I think that the issue is actually with the OneLogin assertion API not yielding that data since I have dug around in that myself separately.

pitbulk commented 3 years ago

Right now is not possible to retrieve the Alias from OneLogin.

But that why we added the accounts.yaml, where you can define the relation between the account_id and its name/alias. See https://github.com/onelogin/onelogin-python-aws-assume-role/blob/master/accounts.yaml.template

pitbulk commented 2 years ago

Nowadays is still now possible.