@@ -34,7 +34,7 @@ description() ->
34
34
35
35
user_login_authentication (Username , AuthProps ) ->
36
36
37
- case http_req (p (user_path ), q ([{username , Username }]++ extractOtherCredentials (AuthProps ))) of
37
+ case http_req (p (user_path ), q ([{username , Username }]++ extract_other_credentials (AuthProps ))) of
38
38
{error , _ } = E -> E ;
39
39
" deny" -> {refused , " Denied by the backing HTTP service" , []};
40
40
" allow" ++ Rest -> Tags = [rabbit_data_coercion :to_atom (T ) ||
@@ -57,7 +57,7 @@ user_login_authentication(Username, AuthProps) ->
57
57
% % However, it may happen that the user was authenticated via rabbit_auth_backend_cache, in that case,
58
58
% % the property `rabbit_auth_backend_cache` is a function which returns a proplist with all the credentials used
59
59
% % on the first succcessful login.
60
- resolveUsingPersistedCredentials (AuthProps ) ->
60
+ resolve_using_persisted_credentials (AuthProps ) ->
61
61
case proplists :get_value (rabbit_auth_backend_http , AuthProps , none ) of
62
62
none -> case proplists :get_value (rabbit_auth_backend_cache , AuthProps , none ) of
63
63
none -> AuthProps ;
@@ -74,10 +74,10 @@ is_internal_property(rabbit_auth_backend_http) -> true;
74
74
is_internal_property (rabbit_auth_backend_cache ) -> true ;
75
75
is_internal_property (_Other ) -> false .
76
76
77
- extractOtherCredentials (AuthProps ) ->
77
+ extract_other_credentials (AuthProps ) ->
78
78
PublicAuthProps = [{K ,V } || {K ,V } <- AuthProps , not is_internal_property (K )],
79
79
case PublicAuthProps of
80
- [] -> resolveUsingPersistedCredentials (AuthProps );
80
+ [] -> resolve_using_persisted_credentials (AuthProps );
81
81
_ -> PublicAuthProps
82
82
end .
83
83
0 commit comments