|
|
|
@ -48,6 +48,11 @@ public class WebAccessAspect { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Before("@annotation(app.annotations.interfaces.CheckWebAccess) && args(session)") |
|
|
|
public void beforeWS(JoinPoint joinPoint, WebSocketSession session) throws IOException { |
|
|
|
before(joinPoint, session); |
|
|
|
} |
|
|
|
|
|
|
|
@Before("@annotation(app.annotations.interfaces.CheckWebAccess) && args(session,..)") |
|
|
|
public void before(JoinPoint joinPoint, WebSocketSession session) throws IOException { |
|
|
|
AuthMethod auth_method = ((MethodSignature) joinPoint.getSignature()).getMethod().getAnnotation(CheckWebAccess.class).auth_method(); |
|
|
|
|