Skip to content

Commit 85e14c7

Browse files
aaron-seomichaelklishin
authored andcommitted
Filter out sockOrAddr from http auth backend's request query
(cherry picked from commit 844f25d)
1 parent 3bcdc0f commit 85e14c7

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

Lines changed: 6 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy