mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 02:31:14 +01:00
Apply peer review results
This commit is contained in:
@@ -63,6 +63,21 @@ public final class Filters
|
|||||||
/** post authentication priority */
|
/** post authentication priority */
|
||||||
public static final int PRIORITY_POST_AUTHENTICATION = 5500;
|
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 ---------------------------------------------------------
|
//~--- constructors ---------------------------------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ public class SecurityRequestFilter implements ContainerRequestFilter {
|
|||||||
@Override
|
@Override
|
||||||
public void filter(ContainerRequestContext requestContext) {
|
public void filter(ContainerRequestContext requestContext) {
|
||||||
Method resourceMethod = resourceInfo.getResourceMethod();
|
Method resourceMethod = resourceInfo.getResourceMethod();
|
||||||
LOG.info("jax-rs method {}", resourceMethod.getName());
|
|
||||||
if (hasPermission() || anonymousAccessIsAllowed(resourceMethod)) {
|
if (hasPermission() || anonymousAccessIsAllowed(resourceMethod)) {
|
||||||
LOG.debug("allowed unauthenticated request to method {}", resourceMethod);
|
LOG.debug("allowed unauthenticated request to method {}", resourceMethod);
|
||||||
// nothing further to do
|
// nothing further to do
|
||||||
|
|||||||
Reference in New Issue
Block a user