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

Guidance Needed: Turning on debug mode #16

Open
brianwallace opened this issue Oct 31, 2017 · 3 comments
Open

Guidance Needed: Turning on debug mode #16

brianwallace opened this issue Oct 31, 2017 · 3 comments

Comments

@brianwallace
Copy link

Very cool tool!

I believe I have all the required parameters set correctly, but authentication to Okta is timing out.
I am trying to turn on headless browsing to debug, but I do not understand the directions on how to do this via the docker container.

Instructions state the following:

$ npm run start-debug

Where is this set?

@ghost
Copy link

ghost commented Mar 5, 2018

I'm also getting this timeout.

./aws-token.example.sh
Earnest AWS Token Generator

? Okta username (ex. [email protected]): [email protected]
? Okta password: ********************************
  ◠ Logging in....wait() timed out after 30000msec
Error: .wait() timed out after 30000msec
    at null._onTimeout (/usr/src/app/node_modules/nightmare/lib/actions.js:453:10)
    at Timer.listOnTimeout (timers.js:92:15)

@mjacksonest
Copy link
Contributor

mjacksonest commented Apr 24, 2019

I have timeout error as well, and got debug working.

You run npm run start-debug after cloning this repo and installing dependencies (assuming you have node, npm and chrome installed).

When running debug locally, you get to see what is happening in browser, in my case there was this error in the browser:

Sorry, you can't access Amazon Web Services because you are not assigned this app in Okta.

It then attempts to create a screen shot but I always got the error ENOENT: no such file or directory, open '/.../.debug/error.png' but that didn't matter since I could see page in browser while waiting for timeout.

@mjacksonest
Copy link
Contributor

mjacksonest commented Apr 24, 2019

I found how to debug against docker container as well:

docker run -it --rm -e DEBUG=true -v $PWD:/usr/src/app/.debug -v $HOME/.aws/:/root/.aws/  ${ORG}/aws-sts --username [email protected]

The unique parts for debug are -e DEBUG=true -v $PWD:/usr/src/app/.debug.
This addition sets the DEBUG environment variable as well as mounts the missing .debug folder to dump out html(and supporting files) with error message into working directory.

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