spring-cloud / spring-cloud-gateway

An API Gateway built on Spring Framework and Spring Boot providing routing and more.
http://cloud.spring.io
Apache License 2.0
4.52k stars 3.32k forks source link

I am using azure ad with spring boot application.but getting invalid user error. #3497

Open manojsinghsaun opened 2 months ago

manojsinghsaun commented 2 months ago

I am using azure ad with spring boot application(Spring cloud gatewat mvc) and able to login with the application. But sometime it throws error invalid credential. Once the error come it will come for sometime for all the user and it will take sometime to again it to work fine. I am not able to understand how to solve it as it is not frequent.

2024-08-14T10:47:53.306Z DEBUG 1 --- [gateway-service] [nio-9092-exec-5] o.s.security.web.FilterChainProxy : Securing GET /login/oauth2/code/azure?code=1234555&state=gfZOEUBH3Q1Pxom1xw-q-gccVlh4jfzwinZI9khVjWY%3d&session_state=f1a86e10-9aca-419a-a72f-299f1ea80633 2024-08-14T10:47:53.306Z DEBUG 1 --- [gateway-service] [nio-9092-exec-5] o.s.s.web.DefaultRedirectStrategy : Redirecting to /login?error 2024-08-14T10:47:53.419Z DEBUG 1 --- [gateway-service] [nio-9092-exec-6] o.s.security.web.FilterChainProxy : Securing GET /login?error 2024-08-14T10:48:00.483Z DEBUG 1 --- [gateway-service] [nio-9092-exec-4] o.s.security.web.FilterChainProxy : Securing GET / 2024-08-14T10:48:00.484Z DEBUG 1 --- [gateway-service] [nio-9092-exec-4] o.s.s.w.a.AnonymousAuthenticationFilter : Set SecurityContextHolder to anonymous SecurityContext 2024-08-14T10:48:00.484Z DEBUG 1 --- [gateway-service] [nio-9092-exec-4] o.s.s.w.session.SessionManagementFilter : Request requested invalid session id

manojsinghsaun commented 2 months ago

stackoverflow2