fix: add redirect_after_logout_uri for ODIC that do not have an end_session_endpoint#10653
Conversation
|
It's not necessary to add documentation, this PR is just to support services like Google that don't provide the end_session_endpoint configuration, and OIDC can also correctly using the |
moonming
left a comment
There was a problem hiding this comment.
can not merge without test cases
|
|
||
|
|
||
|
|
||
| === TEST 35: Check whether outh0 can redirect normally using post_logout_redirect_uri configuration |
…isix into ODIC_redirect_after_logout
|
@luoluoyuyu a question for the below: What if someone configures both |
Hi @kayx23 'redirect_after_logout_uri' is not defined in the schema. If 'redirect_after_logout_uri' is configured, an error will occur. apisix/apisix/plugins/openid-connect.lua at master · apache/apisix (github.com) |



Description
Fixes #6791
Problem Analysis
When the openid service does not support
end_session_endpoint, the ODIC logout fails to redirect to post_logout_redirect_uri. this issue is caused by the OpenID standard.end_session_endpointdoes not necessarily need to be implemented.Solution
Use the
redirect_after_logout_uridefined in lua-resty-openidc for redirection when the OpenID service does not supportend_session_endpoint.Checklist