Principal principal
in spring controller and then pass it to service layer over getting principal in the service layer immediately though SecurityContextHolder.getContext().getAuthentication().getPrincipal()
?getAuthentication()
and getPrincipal()
objects for null everywhere (something like a custom wrapper)?If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With