Filter out sockOrAddr from http auth backend's request query
(cherry picked from commit844f25d77a) (cherry picked from commit85e14c74fa)
This commit is contained in:
parent
1e1b7161c3
commit
3a319c2792
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue