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 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)