Interface AuthenticationAdviceTrait
-
- All Superinterfaces:
AdviceTrait,AdviceTrait
- All Known Subinterfaces:
SecurityAdviceTrait
@API(status=STABLE) public interface AuthenticationAdviceTrait extends AdviceTrait
Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet been provided.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.springframework.http.ResponseEntity<org.zalando.problem.Problem>handleAuthentication(org.springframework.security.core.AuthenticationException e, org.springframework.web.context.request.NativeWebRequest request)-
Methods inherited from interface org.zalando.problem.spring.common.AdviceTrait
createStackTrace, isCausalChainsEnabled, prepare, process, resolveResponseStatus, toProblem, toProblem, toProblem
-
-
-
-
Method Detail
-
handleAuthentication
@API(status=INTERNAL) @ExceptionHandler default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleAuthentication(org.springframework.security.core.AuthenticationException e, org.springframework.web.context.request.NativeWebRequest request)
-
-