spring-projects / spring-authorization-server

Spring Authorization Server
https://spring.io/projects/spring-authorization-server
Apache License 2.0
4.82k stars 1.27k forks source link

The second request/oauth2/authorize will result in 404 Not Found, Environment cicd deploys kubernetes ,ingresses custom domain names #1712

Open Gpicachu opened 1 week ago

Gpicachu commented 1 week ago
截屏2024-09-10 11 02 53
Gpicachu commented 1 week ago

Could he have caused it because I used undertow?

This problem doesn't happen every time, it only happens during production redeployments, but it doesn't happen every time.

jgrandja commented 1 week ago

@Gpicachu The information provided is quite minimal and doesn't really help. But it seems to me it's a Kubernetes environment related issue.

If you're able to provide a minimal sample that reproduces this issue I can look into it further.

Gpicachu commented 1 week ago

I have developed a standalone minimal OAuth2 authentication center Spring Boot application based on the existing project code, and it is hosted at https://github.com/Gpicachu/spring-oauth2.1.git. The project includes SQL files and a Dockerfile. When deploying to Kubernetes, I used a custom JRE that I built based on OpenJDK 17. I hope the provided resources will be helpful for better understanding and addressing my issue.

jgrandja commented 1 week ago

@Gpicachu The minimal sample should be easily runnable, just like the demo sample. I should not have to install to a Kubernetes environment or require extra setup with custom sql statements.

As I mentioned, I believe this is an environment related issue so we need to rule out the environment setup. If you're able to reproduce the issue in a minimal sample, like the demo sample, then I will look into it further.

spring-projects-issues commented 3 days ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.