Skip to content

Commit bf7476f

Browse files
Remove log statements
1 parent d6bf8fe commit bf7476f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

deps/oauth2_client/src/oauth2_client.erl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ introspect_token(Token) ->
6666
SSL -> [{ssl, SSL}]
6767
end ++ get_default_timeout(),
6868
Options = [],
69-
rabbit_log:debug("Sending introspect_request URL:~p Header: ~p Body: ~p",
70-
[URL, Header, Body]),
7169
Response = httpc:request(post, {URL, Header, Type, Body}, HTTPOptions, Options),
7270
case parse_introspect_token_response(Response) of
7371
{error, _} = Error -> Error;
@@ -81,7 +79,6 @@ sign_token(TokenPayload) ->
8179
case get_opaque_token_signing_key() of
8280
{error, _} = Error -> Error;
8381
SK ->
84-
ct:log("Signing with ~p", [SK]),
8582
case SK#signing_key.type of
8683
hs256 ->
8784
{_, Value} = sign_token_hs(TokenPayload, SK#signing_key.key, SK#signing_key.id),
@@ -93,9 +90,6 @@ sign_token(TokenPayload) ->
9390
sign_token_hs(Token, #{<<"kid">> := TokenKey} = Jwk) ->
9491
sign_token_hs(Token, Jwk, TokenKey).
9592

96-
%%sign_token_hs(Token, Jwk, TokenKey) ->
97-
%% sign_token_hs(Token, Jwk, TokenKey, true).
98-
9993
sign_token_hs(Token, Jwk, TokenKey) ->
10094
Jws0 = #{
10195
<<"alg">> => <<"HS256">>,
@@ -111,10 +105,6 @@ sign_token_rsa(Token, Jwk, TokenKey) ->
111105
},
112106
sign_token(Token, Jwk, Jws).
113107

114-
sign_token_no_kid(Token, Jwk) ->
115-
Signed = jose_jwt:sign(Jwk, Token),
116-
jose_jws:compact(Signed).
117-
118108
sign_token(Token, Jwk, Jws) ->
119109
Signed = jose_jwt:sign(Jwk, Jws, Token),
120110
jose_jws:compact(Signed).

0 commit comments

Comments
 (0)