You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Deepak-0822 (via GitHub)" <gi...@apache.org> on 2025/09/01 07:54:16 UTC

[I] help request: Azure SSO log in [apisix]

Deepak-0822 opened a new issue, #12572:
URL: https://github.com/apache/apisix/issues/12572

   ### Description
   
   Hi team, Initernally i faced a 500 internal server error, so I recently updated the APISIX Ingress Controller image to 2.0.0-rc3 and the APISIX image to 3.13.0-ubuntu. After the upgrade, 500 internal server error is fixed now I am encountering the following error: "400 Bad Request
   Request Header Or Cookie Too Large:
   I tried modifying the NGINX configuration by setting large_client_header_buffers 4 32k, but it resulted in a 500 Internal Server Error. I had to revert the change to restore functionality.
   
   Could someone help me with this issue? I need to resolve it before moving to production.
   I’ve attached the latest logs from the Admin APISIX and APISIX Ingress Controller. Please let me know if you notice anything suspicious or if I should adjust any specific configuration.
   
   [apisix-admin-logs.txt](https://github.com/user-attachments/files/22073367/apisix-admin-logs.txt)
   [apisix-ingress-contrller-logs.txt](https://github.com/user-attachments/files/22073366/apisix-ingress-contrller-logs.txt)
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Deepak-0822 (via GitHub)" <gi...@apache.org>.
Deepak-0822 commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3250301094

   Hi @Baoyuantop, Thanks, After updating the apisix Ingress controller image to the latest version, the 500 Internal Server Error is gone.
   Now I only get the 400 Bad Request – Request Header or Cookie Too Large error.
   
   I added the following in the APISIX Helm nginx config under the custom configuration snippet:
   configurationSnippet:
     main: |
   
     httpStart: |
   
     httpEnd: |
   
     httpSrv: |
       large_client_header_buffers 4 32k;
   
     httpAdmin: |
   
     stream: |
   
   But I’m still seeing the same error.
   
   For your reference, I’m using this official apisix chart:
   👉 https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix/values.yaml
   
   Is there anything else I need to update in the configuration to make it work?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3256856740

   There may be some configuration errors that cause this problem. It is recommended that you carefully check the corresponding configuration according to the documentation https://docs.api7.ai/apisix/how-to-guide/authentication/set-up-sso-with-azure-ad. I have previously tested that the configuration steps in the documentation can be executed successfully.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Deepak-0822 (via GitHub)" <gi...@apache.org>.
Deepak-0822 commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3317562592

   Hi @Baoyuantop, Apologize for the delayed response. As of now, we are not preferring APISIX Dashboard for management, since it does not receive frequent updates from a management perspective. If we decide to use APISIX Dashboard in the future, we would require SSO integration, and I will raise an issue for that at that time. For now, we will proceed with using only the APISIX Gateway.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Deepak-0822 (via GitHub)" <gi...@apache.org>.
Deepak-0822 commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3258248554

   Hi @Baoyuantop, I followed the same steps as mentioned in the above docs but every route and polices working fine expect OpenID SSO login, could you please tell for APISIX and APISIX ingress controller which image tag have you used for testing.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3317641730

   If there is still a problem, please open it again.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3265597145

   I've tried both, and both work fine.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3470937456

   @Deepak-0822 
   
   >  it does not receive frequent updates from a management perspective. I
   
   Since APISIX 3.13, Dashboard is bundled as static files and served via `apisix:9180/ui`. Just to confirm if this helps?
   
   And the project scopes: https://github.com/apache/apisix-dashboard/issues/2981


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3248251513

   Hi @Deepak-0822, from the logs I saw the error `request to the redirect_uri path but there's no session state found`, this indicates that the OpenID Connect plugin was unable to find the session state when processing the Azure SSO callback. This may be causing your 500 error.
   
   Regarding the 400 error, I suspect the authentication token and related headers returned by Azure SSO are too large, exceeding the default nginx client header buffer limit. How are your `client_header_buffer_size` and `large_client_header_buffers` settings defined? Have you modified them?
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Deepak-0822 (via GitHub)" <gi...@apache.org>.
Deepak-0822 commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3253584257

   Hi @Baoyuantop, After I added large_client_header_buffers: "8 64k" in the APISIX nginx config, the cookie error was resolved. However, as you mentioned I’m still getting the error [error] 50#50: *787 [lua] openid-connect.lua:680: phase_func(): OIDC authentication failed: request to the redirect_uri path but there's no session state found. Could you suggest a specific workaround or solution for this? I’ve been stuck on it for a while. If possible, we can also connect over Google Meet—please let me know your available timings.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop commented on issue #12572:
URL: https://github.com/apache/apisix/issues/12572#issuecomment-3296682537

   Hi @Deepak-0822, has the issue been resolved?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] help request: Azure SSO log in [apisix]

Posted by "Baoyuantop (via GitHub)" <gi...@apache.org>.
Baoyuantop closed issue #12572: help request: Azure SSO log in
URL: https://github.com/apache/apisix/issues/12572


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org