Skip to content

Custom authorization in Kong #7524

Answered by kikito
reetik-raj asked this question in Help
Jul 1, 2021 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

It is difficult for me to understand what you are trying to accomplish, exactly, because "Scope" can mean a lot of different things; since this is an authorization-related discussion, I assume they mean some sort of "permission group", like "Payroll" or "Sales".

I need to map scopes required with URLs

It sounds like you are trying to do something like this:

services:
- name: my-service
  routes:
  - paths: ["/foo"]
  - paths: ["/bar"]
  - paths: ["/baz"]
  plugins:
  - name: my-custom-auth-plugin 

So you have one instance of your plugin associated to one Service, and then inside your custom plugin you are trying to do something like this, only with more regexes involved:

local path = k…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@reetik-raj
Comment options

@reetik-raj
Comment options

@kikito
Comment options

Answer selected by guanlan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants
Converted from issue

This discussion was converted from issue #7518 on July 02, 2021 09:37.