Closed keeplearningandtrying closed 2 years ago
Thanks for reaching out @keeplearningandtrying.
Can you try accessing http://127.0.0.1:8000 instead of http://localhost:8080 and confirm if it works?
The redirectUri
points to 127.0.0.1
instead of localhost
.
@marcusdacoregio thanks for looking into this. I just tried this:
Thanks for looking into this. BTW, great presentation and great examples!
Hi @keeplearningandtrying, thanks for watching the presentation and the great feedback!
When using http://localhost:8000, this is a known issue in the Spring Authorization Server. However I have not yet come up with a good way to improve the developer experience around identifying and solving the error. Ultimately, it is an invalid_request
error response on the redirect_uri
parameter, but that error code doesn't come over to the client side due to an internal forward to /error
on the auth server side.
As for the 404 error when using http://127.0.0.1:8000, I can't seem to reproduce that locally. Are you using a particular browser or OS combo that might reproduce the issue? (I'm using the latest version of FIrefox on MacOS 11.6)
@sjohnr , I tried on both MacOS and Windows 10 with Firefox and Chrome. I didn't get it work on Windows however it worked once for http://localhost:8000 on MacOS and then it stopped working after that. However like I mentioned, hit other restful endpoints through gateway works just fine.
Thanks for looking into this.
@keeplearningandtrying, how are you starting the web application? Are you using the gradle command or starting it through an IDE? I wonder if it's an issue with your machine and the UI build? @marcusdacoregio any ideas?
I tried running it on my Windows 10 machine as well and it worked fine. I guess that there is some tiny detail that we are missing in your setup. Maybe if you provide every version and a detailed step-by-step we can simulate it.
This is what I have tried against the latest commit in main branch
As a side note, I also tried the samples from spring-authorization server project - https://github.com/spring-projects/spring-authorization-server/tree/main/samples and it works as expected.