You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

path: util/aop/aop-api/src/main/java/com/knubisoft/aop/api/impl/SecurityHttpRequestProcessingAspect.java

This aspect acts as a security check for each request. If an endpoint that was called is private, the aspect will begin authentication processing.
Firstly it checks if called method is secure by processing the @Operation swagger annotation. Each method within the API interfaces is annotated by @Operation during the API layer generation.

Example of a private secure method (endpoint):

Example of public method (endpoint):

As you can see public endpoint doesn't have a security section at all, this means that SecurityHttpRequestProcessingAspect won't do authentication and other security processes, just return the response.



  • No labels