You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "thor533 (via GitHub)" <gi...@apache.org> on 2023/05/09 02:28:47 UTC

[GitHub] [apisix] thor533 opened a new issue, #9438: forward-auth 302 problem

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

   ### Description
   
   When I used the forward-auth plugin, when the authentication failed, I wanted to return to the authentication page, but I got a blank page, please help to check, the official documentation is too simple
   ```
   {
       "id": "459715989806777025",
       "create_time": 1683541682,
       "update_time": 1683598548,
       "uris": [
           "/test/*",
           "/**"
       ],
       "name": "forwardauth",
       "desc": "forwardauth",
       "priority": 1,
       "methods": [
           "GET",
           "POST",
           "PUT",
           "DELETE",
           "PATCH",
           "HEAD",
           "OPTIONS"
       ],
       "plugins": {
           "forward-auth": {
               "client_headers": [
                   "http://10.210.21.123:80"
               ],
               "disable": false,
               "request_headers": [
                   "Cookie",
                   "Authorization",
                   "Host"
               ],
               "request_method": "POST",
               "upstream_headers": [
                   "Cookie",
                   "Authorization",
                   "Host"
               ],
               "uri": "http://192.168.97.47:8088/ssoserver/get/authentication/forwardauth"
           }
       },
       "upstream": {
           "nodes": [
               {
                   "host": "10.210.21.105",
                   "port": 9001,
                   "weight": 1
               }
           ],
           "retries": 1,
           "timeout": {
               "connect": 6,
               "send": 6,
               "read": 6
           },
           "type": "roundrobin",
           "scheme": "http",
           "pass_host": "pass",
           "keepalive_pool": {
               "idle_timeout": 60,
               "requests": 1000,
               "size": 320
           }
       },
       "labels": {
           "API_VERSION": "forwardauth"
       },
       "status": 1,
       "uri": "/test/*,/**"
   }
   ```
   
   the result:
   ![image](https://user-images.githubusercontent.com/62246176/236978536-62f3b962-0b5f-4701-9396-ef65b2c4f7dd.png)
   
   no error log
   
   ### Environment
   
   - APISIX version (run `apisix version`):2.15-alpine
   - 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


[GitHub] [apisix] thor533 closed issue #9438: forward-auth 302 problem

Posted by "thor533 (via GitHub)" <gi...@apache.org>.
thor533 closed issue #9438: forward-auth 302 problem
URL: https://github.com/apache/apisix/issues/9438


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