[Refactor] Refactor authentication_type implementation to improve the efficiency to get cookie #1162
Labels
bug
Something isn't working
help wanted
Extra attention is needed, need help from community
Refactoring
triaged
Is your feature request related to a problem?
Cookie is queried by API multiple times in authentication_type. Refactor is needed for abstract methods in authentication_type to improve the efficiency to get cookie.
async getAdditionalAuthHeader( request: OpenSearchDashboardsRequest<unknown, unknown, unknown, any> ): Promise<any> {......
// To Do: refactor this method to improve the efficiency to get cookie, get cookie from input parameter......}
What solution would you like?
Refactor the implementations for abstract methods of
AuthenticationType
to improve the efficiency to get cookie. Instead of getting cookie for every methods, pass cookie as input parameter to the method.What alternatives have you considered?
N/A
Do you have any additional context?
Request coming from a PR review comment: #1110 (comment)
The text was updated successfully, but these errors were encountered: