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

Web login takes me to management console #320

Closed
gstathisfs opened this issue Jun 25, 2019 · 10 comments
Closed

Web login takes me to management console #320

gstathisfs opened this issue Jun 25, 2019 · 10 comments

Comments

@gstathisfs
Copy link

Describe the bug
When I login to okta via the web browser the tool loads the aws management console and hangs there.

To Reproduce
Steps to reproduce the behavior:

  1. Download tool
  2. run okta-aws test sts get-caller-identity
  3. login
  4. page loads console and hangs

Expected behavior
The browser should close and spit out credentials

Additional context
This is on macOSX Mojave
The tool does work some times but it seems random as to when it wont hang on the console

@jeremyplichtafc
Copy link
Contributor

seems like duplicate of #317 - fix is on master, waiting for new release of the project for it to be included. You can follow instructions in that issue to build locally though and it should work for you.

@gstathisfs
Copy link
Author

I have taken the resulting snapshot jar from the locally built project however it still locks me in to the aws console when I replace the jar in ~/.okta

@gstathisfs
Copy link
Author

Downgrading to version 1.0.10 has made the tool work thank you

@jeremyplichtafc
Copy link
Contributor

There is a symlink of the jar without a version number in ~/.okta that needs to point to the new jar that you built in order for the change to be picked up

@gstathisfs
Copy link
Author

I have updated the symlink of okta-aws-cli.jar to point to the new 2.0.3 snapshot jar that I have built but it still hangs on the management console screen

@gstathisfs gstathisfs reopened this Jun 26, 2019
@ghost
Copy link

ghost commented Jun 27, 2019

I also rebuilt the 2.0.3 snapshot jar and copied it over the 2.0.2.jar version.

Now the pop up will close before i can choose a role and the cli will ask me to select a role. Once I input the number of the role I want, it fails by telling me Unable to locate credentials. You can configure credentials by running "aws configure".

I'm on macOS Mojave 10.14.5.

@gstathisfs
Copy link
Author

Weird even if I just copy the built 2.03 jar over the 2.0.2 jar it still hangs on the management console. The only thing that has worked for me is copying over the cli jar with the old 1.0.10 jar

@ghost
Copy link

ghost commented Jun 27, 2019

@gstathisfs

I did the following and was able to get it to work.

  1. Download the 2.0.0.jar
  2. remove the symlink for okta-aws-cli.jar
    rm okta-aws-cli.jar
  3. Move the 2.0.0.jar into the .okta folder and then symlink that version
    ln -s okta-aws-cli-2.0.0.jar okta-aws-cli.jar
  4. rm -rf ~/.okta/.current_session
  5. rm -rf cookies.properties
  6. clear out the profiles file so that it's empty
  7. close and reopen your terminal and try again.

@jeremyplichtafc
Copy link
Contributor

There were a few different issues here. I think you were running into the issue where if you only had one AWS role to choose from it would log in and hang (#328) this was fixed in latest release 2.0.4

@jeremyplichtafc
Copy link
Contributor

closing this out as I believe it is fixed. let me know if you still see it with latest release v2.0.4

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

No branches or pull requests

2 participants