summaryrefslogtreecommitdiff
path: root/test/rabbit_dummy_protocol_connection_info.erl
blob: 92c01d2b0e3707c2ea52d7881b80bd85a0a5fd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%% Copyright (c) 2017-2020 VMware, Inc. or its affiliates.  All rights reserved.
%%

%% Dummy module to test rabbit_direct:extract_extra_auth_props

-module(rabbit_dummy_protocol_connection_info).

%% API
-export([additional_authn_params/4]).

additional_authn_params(_Creds, _VHost, Pid, _Infos) ->
    case Pid of
        -1 -> throw(error);
        _  -> [{client_id, <<"DummyClientId">>}]
    end.