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

5 Minute quickstart not working #3658

Open
3 of 5 tasks
marisbest2 opened this issue Oct 30, 2023 · 2 comments
Open
3 of 5 tasks

5 Minute quickstart not working #3658

marisbest2 opened this issue Oct 30, 2023 · 2 comments
Labels
bug Something is not working.

Comments

@marisbest2
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

I did a fresh clone of the repo and followed the steps in the 5 minute quickstart. I navigate to 127.0.0.1:5555 and see the login screen, but when I click the button and get redirected to 127.0.0.1:3000/login I see a "We couldn't find what you're looking for." (see screenshot).

I'm on a M1 Mac if that matters, trying to hit it via Chrome. I dont think anything else on my machine is running on 3000 and all the earlier steps run
Screenshot 2023-10-30 at 4 44 29 PM

Reproducing the bug

git clone https://github.com/ory/hydra.git
docker-compose -f quickstart.yml \                         
    -f quickstart-postgres.yml \      
    up --build                        
code_client=$(docker-compose -f quickstart.yml exec hydra \
    hydra create client \             
    --endpoint http://127.0.0.1:4445 \
    --grant-type authorization_code,refresh_token \
    --response-type code,id_token \    
    --format json \
    --scope openid --scope offline \
    --redirect-uri http://127.0.0.1:5555/callback)

code_client_id=$(echo $code_client | jq -r '.client_id')
code_client_secret=$(echo $code_client | jq -r '.client_secret')
docker-compose -f quickstart.yml exec hydra \
    hydra perform authorization-code \
    --client-id $code_client_id \
    --client-secret $code_client_secret \
    --endpoint http://127.0.0.1:4444/ \
    --port 5555 \
    --scope openid,offline

# go to 127.0.0.1:5555
# click the authorize link
# see cannot find page

Relevant log output

hydra-consent-1        | 
hydra-consent-1        | > [email protected] serve /usr/src/app
hydra-consent-1        | > node lib/app.js
hydra-consent-1        | 
hydra-hydra-1          | time=2023-10-30T20:00:28Z level=info msg=No tracer configured - skipping tracing setup audience=application service_name=Ory Hydra service_version=v2.1.1
hydra-hydra-1          | Thank you for using Ory Hydra v2.1.1!
hydra-hydra-1          | 
hydra-hydra-1          | Take security seriously and subscribe to the Ory Security Newsletter. Stay on top of new patches and security insights.
hydra-hydra-1          | 
hydra-hydra-1          | >> Subscribe now: http://eepurl.com/di390P <<
hydra-hydra-1          | time=2023-10-30T20:00:30Z level=info msg=Software quality assurance features are enabled. Learn more at: https://www.ory.sh/docs/ecosystem/sqa audience=application service_name=Ory Hydra service_version=v2.1.1
hydra-hydra-1          | time=2023-10-30T20:00:30Z level=info msg=Setting up http server on :4445 audience=application service_name=Ory Hydra service_version=v2.1.1
hydra-hydra-1          | time=2023-10-30T20:00:30Z level=info msg=Setting up http server on :4444 audience=application service_name=Ory Hydra service_version=v2.1.1
hydra-hydra-1          | time=2023-10-30T20:00:30Z level=warning msg=HTTPS is disabled. Please ensure that your proxy is configured to provide HTTPS, and that it redirects HTTP to HTTPS. audience=application service_name=Ory Hydra service_version=v2.1.1
hydra-consent-1        | Listening on http://0.0.0.0:3000
hydra-hydra-1          | time=2023-10-30T20:04:41Z level=info msg=started handling request http_request=map[headers:map[accept:application/json accept-encoding:gzip content-length:690 content-type:application/json user-agent:OpenAPI-Generator/1.0.0/go] host:127.0.0.1:4445 method:POST path:/admin/clients query:<nil> remote:127.0.0.1:36744 scheme:http]
hydra-hydra-1          | time=2023-10-30T20:04:41Z level=info msg=completed handling request http_request=map[headers:map[accept:application/json accept-encoding:gzip content-length:690 content-type:application/json user-agent:OpenAPI-Generator/1.0.0/go] host:127.0.0.1:4445 method:POST path:/admin/clients query:<nil> remote:127.0.0.1:36744 scheme:http] http_response=map[headers:map[cache-control:private, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8 location:/admin/clients/d02f5566-bb7c-4a7b-9b76-7f0b9790e78a] size:1421 status:201 text_status:Created took:753.139292ms]
hydra-hydra-1          | time=2023-10-30T20:05:06Z level=info msg=started handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". referer:http://127.0.0.1:5555/ sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:same-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/oauth2/auth query:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". remote:192.168.65.1:37370 scheme:http]
hydra-hydra-1          | time=2023-10-30T20:05:06Z level=info msg=access allowed audience=audit http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". referer:http://127.0.0.1:5555/ sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:same-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/oauth2/auth query:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". remote:192.168.65.1:37370 scheme:http] service_name=Ory Hydra service_version=v2.1.1
hydra-hydra-1          | time=2023-10-30T20:05:06Z level=info msg=completed handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". referer:http://127.0.0.1:5555/ sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:same-site sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/oauth2/auth query:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". remote:192.168.65.1:37370 scheme:http] http_response=map[headers:map[cache-control:private, no-cache, no-store, must-revalidate content-type:text/html; charset=utf-8 location:http://127.0.0.1:3000/login?login_challenge=8850006f307440b7abd674f60689f1fc set-cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true".] size:99 status:302 text_status:Found took:884.251792ms]
hydra-hydra-1          | time=2023-10-30T20:26:54Z level=info msg=started handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/ query:<nil> remote:192.168.65.1:37372 scheme:http]
hydra-hydra-1          | time=2023-10-30T20:26:54Z level=info msg=completed handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/ query:<nil> remote:192.168.65.1:37372 scheme:http] http_response=map[headers:map[content-type:text/plain; charset=utf-8 x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:97.46975ms]
hydra-hydra-1          | time=2023-10-30T20:26:59Z level=info msg=started handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/login query:<nil> remote:192.168.65.1:37372 scheme:http]
hydra-hydra-1          | time=2023-10-30T20:26:59Z level=info msg=completed handling request http_request=map[headers:map[accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 accept-encoding:gzip, deflate, br accept-language:en-US,en;q=0.9 connection:keep-alive cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". sec-ch-ua:"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile:?0 sec-ch-ua-platform:"macOS" sec-fetch-dest:document sec-fetch-mode:navigate sec-fetch-site:none sec-fetch-user:?1 upgrade-insecure-requests:1 user-agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36] host:127.0.0.1:4444 method:GET path:/login query:<nil> remote:192.168.65.1:37372 scheme:http] http_response=map[headers:map[content-type:text/plain; charset=utf-8 x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:115.6655ms]

Relevant configuration

No response

Version

latest HEAD

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Docker Compose

Additional Context

No response

@marisbest2 marisbest2 added the bug Something is not working. label Oct 30, 2023
@vinckr
Copy link
Member

vinckr commented Nov 1, 2023

Hey @marisbest2
I have not tried it out now, but that message is not coming from Ory, have never seen that phone number before. There is probably something else that is causing an issue.

The logs you posted indicate that Hydra is running fine and everything is working.

If you just want to play around with OAuth2 a bit, I suggest giving it a try on Ory Network. There you can use the API to test things out and dont have to figure out the hosting part first

@marisbest2
Copy link
Author

Yeah, I couldnt find that phone number anywhere either, it's very odd.

I'll do that, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants