Add public modifier to constructor and filter()
@@ -54,7 +54,7 @@ public class AthenzAuthorizationFilter extends JsonSecurityRequestFilterBase {
this(config, resourceMapper, new DefaultZpe());
}
- AthenzAuthorizationFilter(AthenzAuthorizationFilterConfig config,
+ public AthenzAuthorizationFilter(AthenzAuthorizationFilterConfig config,
RequestResourceMapper resourceMapper,
Zpe zpe) {
this.roleTokenHeaderName = config.roleTokenHeaderName();
@@ -67,7 +67,7 @@ public class AthenzAuthorizationFilter extends JsonSecurityRequestFilterBase {
}
@Override
- protected Optional<ErrorResponse> filter(DiscFilterRequest request) {
+ public Optional<ErrorResponse> filter(DiscFilterRequest request) {
try {
Optional<ResourceNameAndAction> resourceMapping =
requestResourceMapper.getResourceNameAndAction(request.getMethod(), request.getRequestURI(), request.getQueryString());
