Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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 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 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants