cataglyphis opened a new issue, #10793:
URL: https://github.com/apache/apisix/issues/10793
### Current Behavior
use `openid-connect` plugin to parse the authorization token, and hope skip
the request without this header. so we set `unauth_action` to allow the request
without authentication.
### Expected Behavior
request without authorization header can still route to backend service.
### Error Logs
_No response_
### Steps to Reproduce
1. add route in apisix dashboard
2. set `openid-connect` plugin
```
{
"uri": "/v1/user-service/user/login",
"name": "user_login_debug",
"host": "api-dev.xxx.net",
"plugins": {
"openid-connect": {
"_meta": {
"disable": false
},
"access_token_in_authorization_header": true,
"bearer_only": true,
"client_id": "user-service",
"client_secret": "xxx",
"disable": false,
"discovery":
"http://keycloak-http.keycloak/auth/realms/xxx/.well-known/openid-configuration",
"introspection_endpoint_auth_method": "client_secret_post",
"invalid_token_before": "2023-02-19T00:00:00Z",
"logout_path": "/logout",
"realm": "xxx",
"scope": "openid",
"set_access_token_header": true,
"set_id_token_header": true,
"set_refresh_token_header": false,
"set_userinfo_header": true,
"ssl_verify": false,
"timeout": 3,
"unauth_action": "pass",
"use_jwks": true,
"use_pkce": false
},
"proxy-rewrite": {
"regex_uri": [
"^/v1/user-service/(.+)",
"/$1"
]
}
},
"upstream": {
"nodes": [
{
"host": "user-api.xxx-env-dev",
"port": 8888,
"weight": 1
}
],
"timeout": {
"connect": 6,
"send": 6,
"read": 6
},
"type": "roundrobin",
"scheme": "http",
"pass_host": "pass",
"keepalive_pool": {
"idle_timeout": 60,
"requests": 1000,
"size": 320
}
},
"status": 1
}
```
### Environment
- APISIX version (run `apisix version`): 3.2.2
- Operating system (run `uname -a`): debian
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`): 3.5.10
- 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]