Exception from plugins:jwt:global = true

I’ve configured my Kong like this:

plugins:
jwt:
enabled: true
# If global=true, all routes will be protected by jwt
global: true

How could I add a service behind Kong that does not use JWT tokens?
We have a /token endpoint used to hand out JWT tokens for the other APIs, so it would need an exception from the global JWT configuration. How is that done?

I would like to be able to keep the plugin global, forcing auth by JWT unless explicitly specified.

You can’t use a global plugin in this case. You will need to enable the plugin for each route/service that you want to protect via JWT.

Ok, thanks! Not the news I was hoping for but still - thanks for a quick response!


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ