Skip to content

Commit e24ffbb

Browse files
Fix dialyze errors
1 parent 8b8b611 commit e24ffbb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deps/rabbitmq_management/include/rabbit_mgmt.hrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
-define(MANAGEMENT_DEFAULT_HTTP_MAX_BODY_SIZE, 20000000).
1616

1717
-define(OAUTH2_ACCESS_TOKEN_COOKIE_NAME, <<"access_token">>).
18-
-define(OAUTH2_ACCESS_TOKEN_COOKIE_PATH, "/js/oidc-oauth/bootstrap.js").
18+
-define(OAUTH2_ACCESS_TOKEN_COOKIE_PATH, <<"/js/oidc-oauth/bootstrap.js">>).

deps/rabbitmq_management/src/rabbit_mgmt_login.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ login(<<"POST">>, Req0=#{scheme := Scheme}, State) ->
2626
http_only => true,
2727
path => ?OAUTH2_ACCESS_TOKEN_COOKIE_PATH,
2828
max_age => 30,
29-
expires => os:system_time(millisecond) + 30000,
29+
% expires => os:system_time(millisecond) + 30000,
3030
same_site => strict
3131
},
3232
SetCookie = cowboy_req:set_resp_cookie(?OAUTH2_ACCESS_TOKEN_COOKIE_NAME, AccessToken, Req1,

deps/rabbitmq_management/src/rabbit_mgmt_oauth_bootstrap.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ set_token_auth(AuthSettings, Req0) ->
4949
cowboy_req:set_resp_cookie(
5050
?OAUTH2_ACCESS_TOKEN_COOKIE_NAME, <<"">>, Req0, #{
5151
max_age => 0,
52-
expires => os:system_time(millisecond) - 30000,
52+
% expires => os:system_time(millisecond) - 30000,
5353
http_only => true,
5454
path => ?OAUTH2_ACCESS_TOKEN_COOKIE_PATH,
5555
same_site => strict

0 commit comments

Comments
 (0)