-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Run your own OAuth 2.0 Server : " Client authentication failed " #1091
Comments
That's usually due to some mishap while c&p, could you retry the tutorial again from afresh? |
I did it twice. The first time we get the unique key violation Error so we did it the second time and we get client authentication failed Error. |
If you're getting |
After that, I retry the tutorial from the fresh here are the ports with their Error Logs also clear no Error except 404 for favicon please check this log also time="2018-10-15T08:57:34Z" level=info msg="Connecting with postgres://:@ory-hydra-example--postgres:5432/hydra?sslmode=disable" |
The IP 0.0.0.0 is not a valid one. Where did you get it from? It’s obviously localhost/127.0.0.1
… On 15. Oct 2018, at 05:40, nishaantchauhan ***@***.***> wrote:
time="2018-10-15T08:57:34Z" level=info msg="Connecting with ***@***.***:5432/hydra?sslmode=disable"
time="2018-10-15T08:57:34Z" level=info msg="Connected to SQL!"
time="2018-10-15T08:57:34Z" level=info msg="JSON Web Key Set hydra.openid.id-token does not exist yet, generating new key pair..."
time="2018-10-15T08:57:35Z" level=info msg="Setting up Prometheus middleware"
time="2018-10-15T08:57:35Z" level=info msg="Transmission of telemetry data is enabled, to learn more go to: https://www.ory.sh/docs/guides/latest/telemetry/"
time="2018-10-15T08:57:35Z" level=info msg="JSON Web Key Set hydra.https-tls does not exist yet, generating new key pair..."
time="2018-10-15T08:57:42Z" level=info msg="Setting up http server on :4445"
time="2018-10-15T08:57:42Z" level=warning msg="HTTPS disabled. Never do this in production."
time="2018-10-15T08:57:42Z" level=info msg="Setting up http server on :4444"
time="2018-10-15T08:57:42Z" level=warning msg="HTTPS disabled. Never do this in production."
time="2018-10-15T08:57:47Z" level=info msg="started handling request" method=GET remote="172.18.0.1:50076" request=/health/ready
time="2018-10-15T08:57:47Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=910851 method=GET remote="172.18.0.1:50076" request=/health/ready status=200 text_status=OK took="910.851µs"
time="2018-10-15T08:57:47Z" level=info msg="started handling request" method=GET remote="172.18.0.1:50076" request=/favicon.ico
time="2018-10-15T08:57:47Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=72942 method=GET remote="172.18.0.1:50076" request=/favicon.ico status=404 text_status="Not Found" took="72.942µs"
time="2018-10-15T08:57:47Z" level=info msg="started handling request" method=GET remote="172.18.0.1:50076" request=/favicon.ico
time="2018-10-15T08:57:47Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=84389 method=GET remote="172.18.0.1:50076" request=/favicon.ico status=404 text_status="Not Found" took="84.389µs"
time="2018-10-15T08:57:53Z" level=info msg="started handling request" method=GET remote="172.18.0.1:50076" request=/health/ready
time="2018-10-15T08:57:53Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=76367 method=GET remote="172.18.0.1:50076" request=/health/ready status=200 text_status=OK took="76.367µs"
time="2018-10-15T09:00:40Z" level=info msg="started handling request" method=GET remote="172.18.0.1:50084" request=/health/ready
time="2018-10-15T09:00:40Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=159033 method=GET remote="172.18.0.1:50084" request=/health/ready status=200 text_status=OK took="159.033µs"
time="2018-10-15T09:01:19Z" level=info msg="started handling request" method=POST remote="172.18.0.4:51434" request=/clients
time="2018-10-15T09:01:20Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=157155587 method=POST remote="172.18.0.4:51434" request=/clients status=201 text_status=Created took=157.155587ms
time="2018-10-15T09:05:01Z" level=info msg="started handling request" method=POST remote="172.18.0.4:52016" request=/oauth2/token
time="2018-10-15T09:05:01Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=160591619 method=POST remote="172.18.0.4:52016" request=/oauth2/token status=200 text_status=OK took=160.591619ms
time="2018-10-15T09:36:03Z" level=info msg="started handling request" method=POST remote="172.18.0.4:51454" request=/oauth2/introspect
time="2018-10-15T09:36:04Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=949375859 method=POST remote="172.18.0.4:51454" request=/oauth2/introspect status=200 text_status=OK took=949.375859ms
time="2018-10-15T09:59:40Z" level=info msg="started handling request" method=POST remote="172.18.0.5:35052" request=/clients
time="2018-10-15T09:59:41Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=605183913 method=POST remote="172.18.0.5:35052" request=/clients status=201 text_status=Created took=605.183913ms
time="2018-10-15T10:02:07Z" level=info msg="started handling request" method=GET remote="172.18.0.1:38848" request=/
time="2018-10-15T10:02:07Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=15670017 method=GET remote="172.18.0.1:38848" request=/ status=404 text_status="Not Found" took=15.670017ms
time="2018-10-15T10:02:07Z" level=info msg="started handling request" method=GET remote="172.18.0.1:38848" request=/favicon.ico
time="2018-10-15T10:02:07Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=92691 method=GET remote="172.18.0.1:38848" request=/favicon.ico status=404 text_status="Not Found" took="92.691µs"
time="2018-10-15T10:02:07Z" level=info msg="started handling request" method=GET remote="172.18.0.1:38848" request=/favicon.ico
time="2018-10-15T10:02:07Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=84591 method=GET remote="172.18.0.1:38848" request=/favicon.ico status=404 text_status="Not Found" took="84.591µs"
time="2018-10-15T10:06:35Z" level=info msg="started handling request" method=GET remote="172.18.0.1:39048" request=/
time="2018-10-15T10:06:35Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=82995756 method=GET remote="172.18.0.1:39048" request=/ status=404 text_status="Not Found" took=82.995756ms
time="2018-10-15T10:11:20Z" level=info msg="started handling request" method=GET remote="172.18.0.1:39268" request=/
time="2018-10-15T10:11:20Z" level=info msg="completed handling request" measure#http://127.0.0.1:9000/.latency=120031129 method=GET remote="172.18.0.1:39268" request=/ status=404 text_status="Not Found" took=120.031129ms
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I don't get it yet what's the issue? |
I would like to help but I don’t understand the issue either. Could you show all the commands you’re executing (after docker-compose kill && docker-compose rm) and then point out the one where it’s failing? It’s very difficult to follow and a comprehensive reproduction guide would help. Otherwise I’m unable to help you.
… On 15. Oct 2018, at 05:52, nishaantchauhan ***@***.***> wrote:
I don't get it yet what's the issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I started from fresh (didn't use docker-compose kill && docker-compose rm) used followed commands but it's all executed perfectly. when I check through the UI http://127.0.0.1:9020 I get the error from all ports which I saw you on an earlier post. Step 1 : Step 2 : Step 3 : Step 4 : Step 5 : Step 6 : Step 7 : Step 8 : Step 9 : Step10 : Step 11 : Step 12 : Step 13 : Step 14 : |
Thank you, it would have been even more helpful if you had included the responses of each command, but let's go with what we have :) So step 10 & 11 work fine, right? It should look like this:
The token will obviously be different but the output should be similar. For me, all of the above command work just perfectly. After executing the last command I see: Then I click on And after clicking "Authorize application" I see: So the tutorial works as expected. Is it possible that one of those ports is either blocked by your firewall or another process is running on it? If you run
Make sure that all three containers are up and running and don't have errors. |
Thank you for solution unblock the port 9010 Thanks a Lot. |
I have followed "https://www.ory.sh/run-oauth2-server-open-source-api-security/" tutorial to make our own OAuth server using Docker.
After executing whole things we get the 404 error from the UI side and we check the logs so we got this Error "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)"
Anyone have a solution than PLease provide us
Thanks in Advance
The text was updated successfully, but these errors were encountered: