Skip to content

Commit e864b3c

Browse files
Resolve conflicts
1 parent dab741d commit e864b3c

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

deps/rabbitmq_management/src/rabbit_mgmt_login.erl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ login(<<"GET">>, Req, State) ->
7070
_ -> {ok, cowboy_req:reply(405, Req), State}
7171
end;
7272
{Type, Value} ->
73-
redirect_to_home_with_cookie(Type, Value, Req, State)
73+
redirect_to_home_with_cookie(?OAUTH2_BOOTSTRAP_PATH, Type, Value, Req, State)
7474
end;
7575

7676
login(_, Req0, State) ->
@@ -82,7 +82,7 @@ handleStrictOrPreferredAuthMechanism(Req, Body, State) ->
8282
{ok, cowboy_req:reply(302, #{<<"Location">> => iolist_to_binary(get_home_uri(Req))},
8383
<<>>, Req), State};
8484
{Type, Value} ->
85-
redirect_to_home_with_cookie(Type, Value, Req, State)
85+
redirect_to_home_with_cookie(?OAUTH2_BOOTSTRAP_PATH, Type, Value, Req, State)
8686
end.
8787

8888
get_auth_mechanism(Req, Body) ->
@@ -113,7 +113,8 @@ get_param_or_header(ParamName, Req, Body) ->
113113
handleAccessToken(Req0, AccessToken, State) ->
114114
case rabbit_mgmt_util:is_authorized_user(Req0, #context{}, <<"">>, AccessToken, false) of
115115
{true, Req1, _} ->
116-
redirect_to_home_with_cookie(?OAUTH2_ACCESS_TOKEN,
116+
redirect_to_home_with_cookie(?OAUTH2_BOOTSTRAP_PATH,
117+
?OAUTH2_ACCESS_TOKEN,
117118
AccessToken,
118119
Req1, State);
119120
{false, ReqData1, Reason} ->

deps/rabbitmq_management/src/rabbit_mgmt_util.erl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,7 @@
4646
-export([direct_request/6]).
4747
-export([qs_val/2]).
4848
-export([get_path_prefix/0]).
49-
<<<<<<< HEAD
50-
-export([get_oauth2_bootstrap_cookie_path/0]).
51-
=======
5249
-export([set_session_cookie/1, clear_session_cookie/1]).
53-
>>>>>>> 6397423289 (Consolidate cookies mgt to the server)
5450
-export([catch_no_such_user_or_vhost/2]).
5551
-export([method_not_allowed/3]).
5652

0 commit comments

Comments
 (0)