Skip to content

Support multiple method in mappingRules  #14

@TommyHwang

Description

@TommyHwang

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions