Skip to content

Commit 3e5939d

Browse files
Merge pull request #16083 from rabbitmq/secure-auth-endpoint
Remove an endpoint that's fallen out of use
2 parents 80889a5 + aa387c4 commit 3e5939d

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

deps/rabbitmq_management/priv/www/api/index.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,17 +1333,6 @@ <h2>Reference</h2>
13331333
</p>
13341334
</td>
13351335
</tr>
1336-
<tr>
1337-
<td>X</td>
1338-
<td></td>
1339-
<td></td>
1340-
<td></td>
1341-
<td class="path">/api/auth</td>
1342-
<td>
1343-
Details about the OAuth2 configuration. It will return HTTP
1344-
status 200 with body: <pre>{"oauth_enabled":"boolean", "oauth_client_id":"string", "oauth_provider_url":"string"}</pre>
1345-
</td>
1346-
</tr>
13471336
<tr>
13481337
<td></td>
13491338
<td></td>

deps/rabbitmq_management/src/rabbit_mgmt_dispatcher.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ dispatcher() ->
215215
{"/reset", rabbit_mgmt_wm_reset, []},
216216
{"/reset/:node", rabbit_mgmt_wm_reset, []},
217217
{"/rebalance/queues", rabbit_mgmt_wm_rebalance_queues, [{queues, all}]},
218-
{"/auth", rabbit_mgmt_wm_auth, []},
219218
{"/auth/attempts/:node", rabbit_mgmt_wm_auth_attempts, [all]},
220219
{"/auth/attempts/:node/source", rabbit_mgmt_wm_auth_attempts, [by_source]},
221220
{"/login", rabbit_mgmt_wm_login, []},

deps/rabbitmq_management/src/rabbit_mgmt_wm_auth.erl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
-module(rabbit_mgmt_wm_auth).
99

10-
-export([init/2, to_json/2, content_types_provided/2, is_authorized/2]).
11-
-export([variances/2]).
1210
-export([authSettings/0]). %% for testing only
1311

1412
-include_lib("rabbitmq_management_agent/include/rabbit_mgmt_records.hrl").
@@ -17,15 +15,6 @@
1715

1816
%%--------------------------------------------------------------------
1917

20-
init(Req, _State) ->
21-
{cowboy_rest, rabbit_mgmt_headers:set_common_permission_headers(Req, ?MODULE), #context{}}.
22-
23-
variances(Req, Context) ->
24-
{[<<"accept-encoding">>, <<"origin">>], Req, Context}.
25-
26-
content_types_provided(ReqData, Context) ->
27-
{rabbit_mgmt_util:responder_map(to_json), ReqData, Context}.
28-
2918
merge_property(Key, List, MapIn) ->
3019
case proplists:get_value(Key, List) of
3120
undefined -> MapIn;
@@ -221,12 +210,6 @@ filter_empty_properties(ListOfProperties) ->
221210
to_binary(Value) when is_boolean(Value)-> Value;
222211
to_binary(Value) -> rabbit_data_coercion:to_binary(Value).
223212

224-
to_json(ReqData, Context) ->
225-
rabbit_mgmt_util:reply(authSettings(), ReqData, Context).
226-
227-
is_authorized(ReqData, Context) ->
228-
{true, ReqData, Context}.
229-
230213
is_invalid(List) ->
231214
lists:any(fun(V) -> case V of
232215
"" -> true;

0 commit comments

Comments
 (0)