mengxzh opened a new issue, #12028:
URL: https://github.com/apache/apisix/issues/12028

   ### Description
   
   when i want to custom oidc session, i found this code looks like already 
supported
   
   <img width="774" alt="Image" 
src="https://github.com/user-attachments/assets/6c7d93a9-fe68-409b-a400-02f5c2cb1dec";
 />
   
   but when i use below code to update custom session use  admin api
   
   `
   curl --request PATCH \
     --url http://127.0.0.1:9180/apisix/admin/routes/oauth2-resource-server \
     --header 'X-API-KEY: eZTssHqsNuUlJXzkCPqbhhWRxwVsZCRm' \
     --header 'content-type: application/json' \
     --data '{
        "plugins": {
                "openid-connect": {
                        "bearer_only": false,
                        "client_id": "oauth2-test",
                        "client_secret": "123456",
                        "discovery": 
"http://192.168.0.29:9303/.well-known/openid-configuration";,
                        "introspection_endpoint_auth_method": 
"client_secret_basic",
                        "post_logout_redirect_uri": "http://127.0.0.1:9080";,
                        "realm": "apisix",
                        "redirect_uri": "http://127.0.0.1:9080/call-back";,
                        "session": {
                                "secret": 
"12e16f870756980a46d6c888086fe84afb96458616e175161fe3230e4fc4ae78",
                                "redis": {
                                        "host": "192.168.0.29",
                                        "port": "6379",
                                        "prefix": "apisix-sessions:",
                                        "database": 2
                                }
                        }
                }
        }
   }'`
   
   **And got a response like this** 
   
   
![Image](https://github.com/user-attachments/assets/7692a5f8-3db5-4ecc-a4f9-f574f776caed)
   
   **due to below check**
   
   <img width="758" alt="Image" 
src="https://github.com/user-attachments/assets/1fbeb788-6473-43bf-b91d-c15c2fa0c9a9";
 />
   
   
   how could i custom oidc session? 
   


-- 
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]

Reply via email to