Skip to content

Extract username from basic auth http filter #32419

@fgouteroux

Description

@fgouteroux

Hi,

I would ask for an update of the basic auth http filter (#30079) to extract the username in a header or metadata.

The use case is the following, after user auth success I need to add the username in the request header that will be used by the application after. Ideally if we can choose the header name, it will be perfect.

Maybe something like:

users:
  inline_string: |-
      user1:{SHA}hashed_user1_password
      user2:{SHA}hashed_user2_password
  set_username_header: X-Scope-OrgID

cc @zhaohuabing

Metadata

Metadata

Assignees

Labels

area/http_filterenhancementFeature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recently

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions