okta / okta-aws-cli

A CLI for having Okta as the IdP for AWS CLI operations
https://github.com/okta/okta-aws-cli
Other
128 stars 34 forks source link

Automatically open default system browser #19

Closed kda-jt closed 1 year ago

kda-jt commented 1 year ago

Hi folks 👋🏼

Current behaviour

Currently, when okta-aws-cli is run, it returns a URL & asks the user to copy it in their browser.

$ okta-aws-cli --org-domain ORG_DOMAIN --aws-iam-idp IDP_ARN --aws-acct-fed-app-id APP_ID --oidc-client-id CLIENT_ID

Open the following URL to begin Okta device authorization for the AWS CLI.

https://ORG_DOMAIN/activate?user_code=USERCODE

And since the command is interactive, I cannot pipe the URL to xdg-open or open.

Expected behaviour

It would be great if it directly opened the browser on the right page.


Thanks!

nickgamb commented 1 year ago

We are adding this as a configurable option.

monde commented 1 year ago

Implemented in #21