Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release/3.5.x] refactor(plugins/ldap-auth): optimize the process of parsing and handling authentication headers #11887

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

team-gateway-bot
Copy link
Collaborator

Backport 6ce55c4 from #11780.

…ling authentication headers (#11780)

* refactor(plugins/ldap-auth): optimize the process of parsing and handling
authentication headers

1. use the `ngx.re.find` and `ngx.re.match` functions for more robust and
efficient string matching operations.
2. adds error handling and logging for potential errors during authentication
header parsing and credential decoding.
3. tweak the handling position for the case where `proxy_authorization_value`
does not exist.

Fix: [FTI-5329](https://konghq.atlassian.net/browse/FTI-5329)
Signed-off-by: sabertobihwy <[email protected]>

* update by comments

---------

Signed-off-by: sabertobihwy <[email protected]>
Co-authored-by: tzssangglass <[email protected]>
(cherry picked from commit 6ce55c4)
@AndyZhang0707 AndyZhang0707 merged commit 4fd3bc6 into release/3.5.x Oct 30, 2023
32 checks passed
@AndyZhang0707 AndyZhang0707 deleted the backport-11780-to-release/3.5.x branch October 30, 2023 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants