Filter out sockOrAddr from http auth backend's request query

(cherry picked from commit 844f25d77a)
This commit is contained in:
Aaron Seo 2025-04-26 23:34:36 -07:00 committed by Michael Klishin
parent 3bcdc0f359
commit 85e14c74fa
No known key found for this signature in database
GPG Key ID: 16AB14D00D613900
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)],
PublicAuthProps = [{K,V} || {K,V} <-AuthProps, not is_internal_property(K) and
not is_internal_none_password(K, V) and
not is_sockOrAddr(K)],
case PublicAuthProps of
[] -> resolve_using_persisted_credentials(AuthProps);
_ -> PublicAuthProps