apache / apisix

The Cloud-Native API Gateway
https://apisix.apache.org/blog/
Apache License 2.0
14.57k stars 2.52k forks source link

bug: openid-connect gives error when targetUrl and redirectUrl are same #11713

Open arnab-sharma opened 3 weeks ago

arnab-sharma commented 3 weeks ago

Current Behavior

openid-connect plugin gives error when targetUrl and redirectUrl are same. Error we get is "request to the redirect_uri path but there's no session state found".I can see session cookie. Still we see the error. ApisixError_openid-connect

Expected Behavior

openid-connect works when targetUrl and redirectUrl are same.

Error Logs

ApisixError_openid-connect

Steps to Reproduce

Enable openid-connect for same targetUrl and redirectURL. e.g: /auth/login/v2.

Environment

arnab-sharma commented 3 weeks ago

@juzhiyuan - If you could please take a look into this.