elastic/kibana
View on GitHubAllow edit of `redirectURL` and `authResponseHeaders` on `AuthenticationResult` objects after creation
Open
#144,698 opened on Nov 7, 2022
Feature:Security/AuthenticationTeam:Securitygood first issuetechnical debt
Description
In a few locations we've had the need to edit either the redirectURL or the authResponseHeaders of an already created AuthenticationResult object. These properties are read-only and so we currently resort to simply create a new AuthenticationResult object with the changes. This leads to fairly verbose code and can lead to errors if we forget to copy all fields. So it would be better to allow these fields to be edited post-creation.
Example of how this is done today: