Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Add open browser option (-w, --web) #258

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

naotama2002
Copy link
Contributor

@naotama2002 naotama2002 commented Aug 19, 2023

🏁 Outline

Add open browser option (-w, --web)

🔗 References

Configs and Credentials

This tool generates temporary login URLs for the AWS Console using the credentials from a named AWS CLI profile.
The configuration files for these named profiles are located in ~/.aws/credentials and ~/.aws/config. For more information about these two files and configuring profiles, please take a look at:

User Federation

In the likely event that a named profile provides credentials for an IAM user (as opposed to an IAM role), that user must first be federated to obtain temporary credentials. AWS does not allow a console login URL to be generated using IAM user credentials, so user federation is required. For more information about credential federation, please take a look at:

This tool will detect and automatically federate IAM users transparently.

xdg-open

📝 Description

Open the AWS Console URL in your default browser.

Browser open command

  • macOS : use "open" command
  • Windows: "start" command
  • Linux: "xdg-open" command

✅ Test

  • Check SSO login with local build version of assam
  • --web option to display the AWS management console in your default browser
    • macOS
    • Windows11
    • Ubuntu22.04, apt get ubuntu-desktop

@naotama2002 naotama2002 force-pushed the add-open-browser-option branch from ae69d8c to 3e74af7 Compare August 19, 2023 06:38
aws/console.go Outdated
}

// getSinginToken retrieves the signin token
func (c *awsClient) getSinginToken(creds credentials.Value, amazonDomain string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Singing is typo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fiexd type.
f908e6b

@naotama2002 naotama2002 force-pushed the add-open-browser-option branch 5 times, most recently from ef3ddff to 3651ad7 Compare August 21, 2023 13:44
@naotama2002 naotama2002 force-pushed the add-open-browser-option branch from 74718b7 to 72a6c3c Compare September 11, 2023 02:22
@naotama2002 naotama2002 force-pushed the add-open-browser-option branch 2 times, most recently from b321c25 to 4f3ed9e Compare September 26, 2023 11:06
@naotama2002 naotama2002 changed the title feat: add open browser option (-web) feat: add open browser option (-w, --web) Sep 26, 2023
@naotama2002 naotama2002 changed the title feat: add open browser option (-w, --web) add open browser option (-w, --web) Sep 26, 2023
@naotama2002 naotama2002 changed the title add open browser option (-w, --web) Add open browser option (-w, --web) Sep 26, 2023
cmd/root.go Outdated Show resolved Hide resolved
@naotama2002 naotama2002 force-pushed the add-open-browser-option branch from 4f3ed9e to 50d46d8 Compare October 1, 2023 04:23
@naotama2002 naotama2002 force-pushed the add-open-browser-option branch from 50d46d8 to 54210b5 Compare October 10, 2023 11:01
@naotama2002 naotama2002 merged commit b3e2fcf into main Oct 10, 2023
5 checks passed
@naotama2002 naotama2002 deleted the add-open-browser-option branch October 10, 2023 11:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants