Skip to content

Commit 3a319c2

Browse files
aaron-seomergify[bot]
authored andcommitted
Filter out sockOrAddr from http auth backend's request query
(cherry picked from commit 844f25d) (cherry picked from commit 85e14c7)
1 parent 1e1b716 commit 3a319c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

deps/rabbitmq_auth_backend_http/src/rabbit_auth_backend_http.erl

+6-2
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,13 @@ is_internal_property(_Other) -> false.
7979
is_internal_none_password(password, none) -> true;
8080
is_internal_none_password(_, _) -> false.
8181

82+
is_sockOrAddr(sockOrAddr) -> true;
83+
is_sockOrAddr(_) -> false.
84+
8285
extract_other_credentials(AuthProps) ->
83-
PublicAuthProps = [{K,V} || {K,V} <-AuthProps, not is_internal_property(K) and
84-
not is_internal_none_password(K, V)],
86+
PublicAuthProps = [{K,V} || {K,V} <-AuthProps, not is_internal_property(K) and
87+
not is_internal_none_password(K, V) and
88+
not is_sockOrAddr(K)],
8589
case PublicAuthProps of
8690
[] -> resolve_using_persisted_credentials(AuthProps);
8791
_ -> PublicAuthProps

0 commit comments

Comments
 (0)