I know in Java Springboot, it is possible to call SecurityContext anywhere in the code to get the context.
For example:
SecurityContext context = SecurityContextHolder.getContext();
My question is, is it possible to get the *gin.Context
anywhere in the code without having to pass it as a parameter to my function?