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

README instructions seem to be incorrect #10

Closed
marceldegraaf opened this issue Dec 5, 2018 · 2 comments · Fixed by #11
Closed

README instructions seem to be incorrect #10

marceldegraaf opened this issue Dec 5, 2018 · 2 comments · Fixed by #11

Comments

@marceldegraaf
Copy link
Contributor

Following the "Using a locally available binary" steps, I've copied the commands listed verbatim. This is the output:

$ hydra clients create \
>     --endpoint http://localhost:4445 \
>     --id test-client \
>     --secret test-secret \
>     --response-types code,id_token \
>     --grant-types refresh_token,authorization_code \
>     --scope openid,offline \
>     --callbacks http://127.0.0.1:4445/callback
You should not provide secrets using command line flags, the secret might leak to bash history and similar systems
OAuth 2.0 Client ID: test-client
$ hydra token user \
>     --endpoint http://localhost:4445/ \
>     --scope openid,offline \
>     --client-id test-client \
>     --client-secret test-secret
Setting up home route on http://127.0.0.1:4446/
Setting up callback listener on http://127.0.0.1:4446/callback
Press ctrl + c on Linux / Windows or cmd + c on OSX to end the process.
If your browser does not open automatically, navigate to:

	http://127.0.0.1:4446/

When I click the Authorize application link on that webpage, I get the error 404 page not found, with the following output in the Hydra log:

INFO[0033] started handling request                      method=GET remote="[::1]:56052" request="/oauth2/auth?audience=&client_id=test-client&max_age=0&nonce=vfpnubhrosyfqimqeokwyqwk&prompt=&redirect_uri=http%3A%2F%2F127.0.0.1%3A4446%2Fcallback&response_type=code&scope=openid+offline&state=lvtjepxxbrbgyafjxzlqsris"
INFO[0033] completed handling request                    measure#http://localhost:4444.latency=62671 method=GET remote="[::1]:56052" request="/oauth2/auth?audience=&client_id=test-client&max_age=0&nonce=vfpnubhrosyfqimqeokwyqwk&prompt=&redirect_uri=http%3A%2F%2F127.0.0.1%3A4446%2Fcallback&response_type=code&scope=openid+offline&state=lvtjepxxbrbgyafjxzlqsris" status=404 text_status="Not Found" took="62.671µs"

Can you help me understand what's going wrong here? Thanks!

@aeneasr
Copy link
Member

aeneasr commented Dec 5, 2018

$ hydra token user \
>     --endpoint http://localhost:4445/ \

should be

$ hydra token user \
>     --endpoint http://localhost:4444/ \

@marceldegraaf
Copy link
Contributor Author

Ah, thanks! You beat me to it, I just found out what went wrong and I opened a PR with the fix 🙂

aeneasr pushed a commit that referenced this issue Dec 6, 2018
Updates README to fix inconsistencies between Docker commands and local binary commands.

Closes #10

Signed-off-by: Marcel de Graaf <mail@marceldegraaf.net>
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 a pull request may close this issue.

2 participants