Hello, I wonder if Ory Network supports enabling d...
# ory-network
f
Hello, I wonder if Ory Network supports enabling debug or verbose logging on its /oauth2/token endpoint? I am troubleshooting an oauth2 client (AWS ALB) which I don’t have access to its code nor its communication with the token endpoint. The client (AWS ALB) keeps reporting error stating that it received a non-200 response from the token endpoint. I’d like to know what that non-200 response was, seen by the client, and the cause of the error.
s
Not yet really, but we can look at the logs on our side and give you the necessary info. What is your project ID?
f
Thanks for your help, Patrik! I’ve been testing with these projects: 020a0f98-1acd-4233-9855-4034fb49a655 naughty-tesla-4oqisau3a4 c1811554-257e-4d9b-b425-f9f7e878c6ee jovial-einstein-spw1zz31bf
s
when did you test?
a recent error I see is
The 'redirect_uri' parameter does not match any of the OAuth 2.0 Client's pre-registered redirect urls.
f
Yesterday mostly
I’ve testing something else at the moment
I can re-run the test to reproduce the error
s
👍
f
done….made 4 requests just now and got the error consistently
at this project
c1811554-257e-4d9b-b425-f9f7e878c6ee jovial-einstein-spw1zz31bf
s
The OAuth 2.0 Client supports client authentication method 'client_secret_basic', but method 'client_secret_post' was requested. You must configure the OAuth 2.0 client's 'token_endpoint_auth_method' value to accept 'client_secret_post'
f
that was easy!
problem solved!
you saved the day…
thanks so much!
s
glad I could help ❤️
i
@steep-lamp-91158 @fierce-wolf-75402 what was the fix here ?
s
You must configure the OAuth 2.0 client's 'token_endpoint_auth_method' value to accept 'client_secret_post'
i
when I run
ory get oauth2-client {client.id}
i get the following error
{“error”: “Unable to locate the  resource”, “error_description”: “”}
f
perhaps you were pointing at a different project?
i
I don’t think so.. I will keep trying to debug here
f
try to include the project id in your get oauth-clients cli command
oh….
you should at least see the client if your project is set correctly
Copy code
ory list oauth2-clients
i
hmm I can’t even see them there.. all I did was 1. Created a project 2. Created a client with client credentials 3. Created a client with authorization_code,refresh_token 4. then went to ory perform client-credentials….. but got the error. Now when I do:
Copy code
ory list oauth2-clients
I get two clients but the IDs don’t match what I was returned when they were created in steps 2 and 3.
f
how many project do you have? may be try listing clients on other projects?
i
oh that could be it
I have 7, used
ory use project [id]
to change to the correct one.. now I can see the correct clients. so progress 👍
👍 1
is there anyway to delete those projects ? as
ory delete
doesn’t have any documentation for projects
f
you need to use the API to do so
and you have to use the session_token in ~/.ory-cloud.json
i.e. that’s your CLI’s cred
i
👍