@@ -34,7 +34,7 @@ description() ->
3434
3535user_login_authentication (Username , AuthProps ) ->
3636
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
3838 {error , _ } = E -> E ;
3939 " deny" -> {refused , " Denied by the backing HTTP service" , []};
4040 " allow" ++ Rest -> Tags = [rabbit_data_coercion :to_atom (T ) ||
@@ -57,7 +57,7 @@ user_login_authentication(Username, AuthProps) ->
5757% % However, it may happen that the user was authenticated via rabbit_auth_backend_cache, in that case,
5858% % the property `rabbit_auth_backend_cache` is a function which returns a proplist with all the credentials used
5959% % on the first succcessful login.
60- resolveUsingPersistedCredentials (AuthProps ) ->
60+ resolve_using_persisted_credentials (AuthProps ) ->
6161 case proplists :get_value (rabbit_auth_backend_http , AuthProps , none ) of
6262 none -> case proplists :get_value (rabbit_auth_backend_cache , AuthProps , none ) of
6363 none -> AuthProps ;
@@ -74,10 +74,10 @@ is_internal_property(rabbit_auth_backend_http) -> true;
7474is_internal_property (rabbit_auth_backend_cache ) -> true ;
7575is_internal_property (_Other ) -> false .
7676
77- extractOtherCredentials (AuthProps ) ->
77+ extract_other_credentials (AuthProps ) ->
7878 PublicAuthProps = [{K ,V } || {K ,V } <- AuthProps , not is_internal_property (K )],
7979 case PublicAuthProps of
80- [] -> resolveUsingPersistedCredentials (AuthProps );
80+ [] -> resolve_using_persisted_credentials (AuthProps );
8181 _ -> PublicAuthProps
8282 end .
8383
0 commit comments