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

Support multiple method in mappingRules #14

Open
TommyHwang opened this issue Feb 16, 2024 · 0 comments
Open

Support multiple method in mappingRules #14

TommyHwang opened this issue Feb 16, 2024 · 0 comments

Comments

@TommyHwang
Copy link

Hi. Thank you for your great golang library for athenz authorization.

I'm trying to use authorization-proxy as sidecar.

Currently, when entering methods in mappingRules, it appears that only a single method is supported for each rule. To input multiple methods for resource mapping, separate rules must be created for each.

Is there any plan to support the acceptance of methods as * or any? If allowed, it would enable more flexible use of rules.

Also, It seems that description for WithTranslator option is necessary.

Current option

{
  "method": "get",
  "action": "get",
  "path": "/path/to/resource",
  "resource": "path.resource"
}

Wanted

{
  "method": "*", # or ANY or GET|PUT|POST
  "action": "*",
  "path": "/path/to/resource",
  "resource": "path.resource"
}

Thank you.

@TommyHwang TommyHwang changed the title Support multiple methos in mappingRules Support multiple method in mappingRules Apr 5, 2024
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

1 participant