-
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
Invalid_request while generate the Access token in own OAuth 2.0 server #1103
Comments
Please read this: https://www.ory.sh/docs/guides/master/hydra/6-how-to/4-debug
Because the CLI command that initiaties the OAuth2 flow terminates after you ran everything. You have to re-run it. |
I have checked the log and I get a followed error.
how can i make our server ip to localhost or this http://myapp.localhost/ type of ip ? |
I have followed this https://www.ory.sh/run-oauth2-server-open-source-api-security/ link for OAuth and after I open the browser as in last steps they said to us
so the first time it will work I don't know which CLI command are you talking about? |
That CLI command you posted will stop working once you hit the callback URL. You have to re-run it in order to get it working again.
That works, thing is you didn't use that as the redirect URL but instead Please follow up with people in the chat or forums if you have more questions. |
Hi @aeneasr
the url is proper it's an ASCII code format so it's correct may b. The error gives also solution which is My issue is OAuth required secure SSL for redirect url for generating access token which i have used http protocol instead of https also i have found the same issue on github but there is no solution.
I re run the code and it's working but for every request do i need to re run the code for every request, i don't think its a valid approach |
No, it's a security measure.
Seems like you have some trouble with understanding how Docker works here. Ask in the chat for more help on this, I'm sure someone can help. |
I have checked GitHub for the same issue there are available issues like (Disable IsRedirectURISecure), there is no solution found yet for that issues. How can i enable the https in server ?
I re-run the code and it's working but for every request do I need to re-run the code. currently I am doing changes on server side this is not a valid approach for this. |
I have made my own OAuth server but when I follow below steps I get the error
Step 1 :

Main page 127.0.0.1:9010
Step 2 : Login using [email protected] email and foobar password

Step 3: Select OpenId or Offline

Step 4: ERROR

Also, I don't understand I did the same process in my local system in that it's working but only one time, only one time it will generate the token after that if I try to generate it again then it will give
Unable to connect
Error why?The text was updated successfully, but these errors were encountered: