Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-7228

Return failure for invalid basic authorization

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.27.3.GA
    • None
    • team/eng
    • None

      Improve handling of invalid basic authorization header by not throwing IllegalArgumentExeption, instead return a failed Uni.
      When HTTP basic authentication is enabled, if client makes a request with invalid encoded authorization header, f.ex. Authorization: Basic A, IllegalArgumentException would be thrown when decoding the invalid bas64 challenge, resulting in a 500 response, this PR catches possible IllegalArgumentException and returns a failed Uni with AuthenticationFailedException instead.

              jmartisk@redhat.com Jan Martiska
              msochure@redhat.com Miroslav Sochurek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: