s4ntos commented on issue #12648: URL: https://github.com/apache/apisix/issues/12648#issuecomment-3380674154
I did some more tests and asked the entraid team to deploy the requested redirect_uri for localhost to test this completely and I see the following error on my logs. ``` 2025/10/08 09:28:01 [error] 79888#79888: *4681365 [lua] openid-connect.lua:680: phase_func(): OIDC authentication failed: request to the redirect_uri path but there's no session state found, client: 127.0.0.1, server: _, request: "GET /anything/callback?code=1.ARAAfVI7hPGtk...........&state=460770683c10abe430609b0744389eea&session_state=87d0158a-efd4-4534-81f8-0641a0d828a6 HTTP/2.0", host: "localhost:9443" 2025/10/08 09:28:01 [warn] 79888#79888: *4681365 [lua] plugin.lua:1207: run_plugin(): openid-connect exits with http status code 500, client: 127.0.0.1, server: _, request: "GET /anything/callback?code=1.ARAAfVI7hPGtk...........&state=460770683c10abe430609b0744389eea&session_state=87d0158a-efd4-4534-81f8-0641a0d828a6 HTTP/2.0", host: "localhost:9443" ``` Any ideas ? The one why this may be happening ? I don't see a session Do I need to keep the session cookie when I do the redirect_uri. ``` https://login.microsoftonline.com/<tenant>/oauth2/v2.0/authorize?response_type=code&scope=729355dd-6034-4d89-bf65-04662405db96%2F.default&redirect_uri=http%3A%2F%2Flocalhost%3A9443%2Fanything%2Fcallback&state=460770683c10abe430609b0744389eea&client_id=<client_id> ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
