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

   ### Description
   
   
   ## configure
   The configuration is as follows
   ```
   curl -i "http://127.0.0.1:9180/apisix/admin/routes/1"; -H "X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
   {
    
     "uri":"/anything/*",
     "plugins": {
       "openid-connect": {
        "client_id": "'"$AUTH0_CLIENT_ID"'",
         "client_secret": "'"$AUTH0_CLIENT_SECRET"'",
         "discovery": 
"https://'"$AUTH0_DOMAIN"'/.well-known/openid-configuration",
         "scope": "openid profile",
         "logout_path": "/anything/logout",
         "redirect_uri": "http://localhost:9080/anything/callback";
       }
     },
     "upstream":{
       "type":"roundrobin",
       "nodes":{
         "httpbin.org:80":1
       }
     }
   }'
   
   ```
   
   
   ## Process description
   The steps of the operation follow the documentation: 
https://docs.api7.ai/apisix/how-to-guide/authentication/set-up-sso-with-auth0
   ### First time login
   Redirects to http://localhost:9080/anything/callback after first successful 
login Returns 500,
   
![image](https://github.com/apache/apisix/assets/82068138/5ec05bb7-4bd8-4932-8e65-61f11e0fe70e)
   
   
   ### Second login
   To access '127.0.0.1:9080/anything/test' again, I need to log in once more, 
and unfortunately, I don't get redirected to  /anything/callback    after a 
successful login.
   
![image](https://github.com/apache/apisix/assets/82068138/421e5904-4aa6-4f54-904b-0c5c65531b65)
   
   
   ## log:
   ```
    openidc.lua:1106: authenticate(): state from argument: 
0dd075ce951900a6bdecbe123d8420e6 does not match state restored from session: 
nil,
   ```
   
   ### 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-unsubscr...@apisix.apache.org.apache.org

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

Reply via email to