Closed romach closed 8 years ago
Spring Security return
Status = 401 Error; message = Unauthorized; body =
After that server (tomcat, jetty) generate own Response Body.
If we wanna get JSON error message into Response Body we have to create own error Handler
@romach do you agree?
@AndriyBaibak: 1:30
@roma-ilnitsky as I know when user hasn't rights to enter /admin**
:
AccessDeniedException
;ExceptionTranslationFilter
it delegates this exception to AccessDeniedHandlerImpl
.AccessDeniedHandler
;@romach I change RestAuthenticationEntryPoint it's work fine )
JSON error should be returned if user hasn't admin rights (for example if enter
/admin**
,/users/*/events
assubscriber
). This issue was creatd while task #130 execution.