-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
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
Missing config.anonymous parameter for multi-authentification #79
Comments
Could you elaborate more about this issue? Do you mean a scenario, where there are multiple authentication methods on Kong enabled? |
Exactly. |
I need this added as well, here are the docs: https://docs.konghq.com/0.14.x/auth/#multiple-authentication https://docs.konghq.com/0.14.x/auth/#anonymous-access |
Spent the morning hacking up a solution, unfortunately we are actively using Kong 14.1 CE, so I tested/developed against that, using Kong 14.1 source code (OAuth2 plugin) as my guide. If desired I can updated it for the latest 1.X. Heres a link to what I did: JakeCodeStuff@f0c573c |
Also having this issue. https://github.com/gbbirkisson/kong-plugin-jwt-keycloak allows this feature. Check for
This exact feature is what is missing. |
Ok, opened #160 Example configuration: _format_version: "1.1"
services:
- name: test-service
url: http://my-service-endpoint
plugins:
- name: oidc
config:
client_id: my-client-id
client_secret: my_client_super_secret
discovery: https://auth.example.com/auth/realms/master/.well-known/openid-configuration
anonymous: 996f6f74-4233-4f45-b5ea-9209892facd1
routes:
- name: test-route
paths:
- /
preserve_host: true
consumers:
- username: anonymous_users
id: 996f6f74-4233-4f45-b5ea-9209892facd1 you get the headers:
Tested with this dockerfile: FROM kong:2.0
ENV KONG_PLUGINS=bundled,oidc
ENV KONG_LOG_LEVEL=debug
USER root
RUN apk add --no-cache zip git && \
luarocks install https://raw.githubusercontent.com/ahoulgrave/kong-oidc/allow-anonymous/kong-oidc-1.1.0-0.rockspec
USER kong Which you can use until a final solution comes up.
|
As far as I can see, the plugin's missing the parameter "anonymous" to implement it in a multi-authorization method in kong.
The text was updated successfully, but these errors were encountered: