opa-spring-security icon indicating copy to clipboard operation
opa-spring-security copied to clipboard

Provide configuration annotations

Open lukasz-kaminski opened this issue 4 years ago • 0 comments

There should be a way to easily say what should be sent to OPA in a request. The idea is to have annotations that could look like this:

@OpaRequest(document = "http/authz")
public class MyOpaInput {
    @HttpMethod
    private String myMethodFieldName;
    @HttpHeader("Authorization")
    private String whatev;
}

Applying it to a class would enable OpaFilter and would make it use this class as a template to send stuff to OPA.

lukasz-kaminski avatar Mar 20 '20 09:03 lukasz-kaminski