Skip to content

Commit 844f25d

Browse files
committed
Filter out sockOrAddr from http auth backend's request query
1 parent 3bcdc0f commit 844f25d

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)