Skip to content
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

Apply plugin for all paths of the route #185

Open
mikomeister opened this issue Dec 17, 2020 · 2 comments
Open

Apply plugin for all paths of the route #185

mikomeister opened this issue Dec 17, 2020 · 2 comments

Comments

@mikomeister
Copy link

mikomeister commented Dec 17, 2020

There is question-related to the plugin configuration.
There is any possible use the nokia-oidc plugin for all path of the configured route?
Imagine, that we have a gateway link like api-gateway.example.com/
and have few subpaths configured like another Kong routes - /service1, /service2
Can we configure plugin just on api-gateway.example.com/ and plugin will be applied for all other paths - service1, service2.
For now, if I configure the plugin on gateway route it will be applied just for the gateway, api-gateway.example.com/service1 accessible without any auth, so i need do the same configuration for each of them.

@ghunteranderson
Copy link

Hello @mikomeister

I'm not sure if I fully understand your question yet. Are you asking how to add the plugin for all routes in the Kong instance? If so, there is an option to add the plugin globally. The readme gives an example here. With this approach, authentication will be required for all routes in that Kong instance. If you add new routes, authentication will automatically be required on them.

@mikomeister
Copy link
Author

mikomeister commented Jan 6, 2021

Hi @ghunteranderson , not actually, imagine that we have few already created Gateways like api-gw-prod, api-gw-dev. So when I tried to add route under a Gateway I need to configure the plugin on application route, in case if I have like 20 applications, I have to configure the plugin on each route, my question is - can I enable oidc plugin on the root gw route like api-gw-prod and other routes under this one will be inherite auth?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants