We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i want to custom oidc session, i found this code looks like already supported
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
due to below check
how could i custom oidc session?
The text was updated successfully, but these errors were encountered:
What version are you using?
Sorry, something went wrong.
@Baoyuantop version: 3.11
https://github.com/apache/apisix/blob/release/3.11/apisix/plugins/openid-connect.lua#L67-L87 There is an additionalProperties restriction in this configuration that does not allow other fields, which is why you are returning errors with the admin api.
No branches or pull requests
Description
when i want to custom oidc session, i found this code looks like already supported
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
due to below check
how could i custom oidc session?
The text was updated successfully, but these errors were encountered: