mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Apply peer review results
This commit is contained in:
@@ -63,6 +63,21 @@ public final class Filters
|
||||
/** post authentication priority */
|
||||
public static final int PRIORITY_POST_AUTHENTICATION = 5500;
|
||||
|
||||
/** pre authorization priority */
|
||||
public static final int PRIORITY_POST_AUTHORIZATION = 6500;
|
||||
|
||||
/** post base url priority */
|
||||
public static final int PRIORITY_POST_BASEURL = 1500;
|
||||
|
||||
/** pre authentication priority */
|
||||
public static final int PRIORITY_PRE_AUTHENTICATION = 4500;
|
||||
|
||||
/** pre authorization priority */
|
||||
public static final int PRIORITY_PRE_AUTHORIZATION = 5500;
|
||||
|
||||
/** pre base url priority */
|
||||
public static final int PRIORITY_PRE_BASEURL = 500;
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,7 +24,6 @@ public class SecurityRequestFilter implements ContainerRequestFilter {
|
||||
@Override
|
||||
public void filter(ContainerRequestContext requestContext) {
|
||||
Method resourceMethod = resourceInfo.getResourceMethod();
|
||||
LOG.info("jax-rs method {}", resourceMethod.getName());
|
||||
if (hasPermission() || anonymousAccessIsAllowed(resourceMethod)) {
|
||||
LOG.debug("allowed unauthenticated request to method {}", resourceMethod);
|
||||
// nothing further to do
|
||||
|
||||
Reference in New Issue
Block a user