File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Add to dependencies
24
24
25
25
``` elixir
26
26
def deps do
27
- [{:server_utils , " ~> 0.3.0 " }]
27
+ [{:server_utils , " ~> 0.3.1 " }]
28
28
end
29
29
```
30
30
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ defmodule ServerUtils.Plugs.Session.JwtSession do
7
7
import Plug.Conn
8
8
9
9
alias ServerUtils.Parsers.Jwt , as: JwtParser
10
+ alias ServerUtils.SentryLogger
10
11
11
12
@ authorization_header "authorization"
12
13
@@ -30,9 +31,11 @@ defmodule ServerUtils.Plugs.Session.JwtSession do
30
31
put_private ( conn , :server_utils , private )
31
32
else
32
33
{ :error , _ } ->
34
+ SentryLogger . info ( "Unable to parse claims from jwt: #{ jwt } " )
33
35
send_unauthorized_response ( conn )
34
36
end
35
37
else
38
+ SentryLogger . debug ( "Header for authorization not found: #{ @ authorization_header } " )
36
39
send_unauthorized_response ( conn )
37
40
end
38
41
end
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ defmodule ServerUtils.Mixfile do
2
2
@ moduledoc false
3
3
use Mix.Project
4
4
5
- @ version "0.3.0 "
5
+ @ version "0.3.1 "
6
6
7
7
def project do
8
8
[
You can’t perform that action at this time.
0 commit comments