Filter out sockOrAddr from http auth backend's request query

(cherry picked from commit 844f25d77a)
(cherry picked from commit 85e14c74fa)
This commit is contained in:
Aaron Seo 2025-04-26 23:34:36 -07:00 committed by Mergify
parent 1e1b7161c3
commit 3a319c2792
1 changed files with 6 additions and 2 deletions

View File

@ -79,9 +79,13 @@ is_internal_property(_Other) -> false.
is_internal_none_password(password, none) -> true;
is_internal_none_password(_, _) -> false.
is_sockOrAddr(sockOrAddr) -> true;
is_sockOrAddr(_) -> false.
extract_other_credentials(AuthProps) ->
PublicAuthProps = [{K,V} || {K,V} <-AuthProps, not is_internal_property(K) and
not is_internal_none_password(K, V)],
not is_internal_none_password(K, V) and
not is_sockOrAddr(K)],
case PublicAuthProps of
[] -> resolve_using_persisted_credentials(AuthProps);
_ -> PublicAuthProps