Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14293

Basic Auth filter should set the SecurityContext after a successful login

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • 3.4.0
    • connect
    • None

    Description

      Currently, the JaasBasicAuthFilter does not set the security context of the request after a successful login. However, this information of an authenticated user might be required for further processing, for example to perform authorization checks after the authentication.

      > The filter should be extended to add the Security Context after a successful login.

      Another improvement would be to assign the right Priority to the filter. The current implementation uses the default priority, which is Priorities.USER = 5000. This is a lower priority than for example AUTHORIZATION, which means that the basic auth filter would run after authorization filters.

      > Assing the correct Priorities.AUTHENTICATION = 1000 priority to the filter 

      Attachments

        Issue Links

          Activity

            People

              pmarton Patrik Márton
              pmarton Patrik Márton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: