File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/org/exploit/keeper/filter Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ class KeeperAuthFilter(
22
22
return
23
23
24
24
val instanceId = p0.getHeaderString(KeeperAuthenticator .HEADER_INSTANCE_ID )
25
- .toIntOrNull() ? : throw NotAuthorizedException (" Invalid instance id" )
25
+ ? .toIntOrNull() ? : throw NotAuthorizedException (" Invalid instance id" )
26
26
27
27
val signature = p0.getHeaderString(KeeperAuthenticator .HEADER_SIGNATURE )
28
28
? : throw NotAuthorizedException (" Missing signature" )
29
29
30
- val timestamp = p0.getHeaderString(KeeperAuthenticator .HEADER_TIMESTAMP ).toLongOrNull()
30
+ val timestamp = p0.getHeaderString(KeeperAuthenticator .HEADER_TIMESTAMP )? .toLongOrNull()
31
31
? : throw NotAuthorizedException (" Missing timestamp" )
32
32
33
33
try {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class MachineAuthFilter(
42
42
return
43
43
}
44
44
45
- val token = ctx.getHeaderString(HEADER )
45
+ val token: String? = ctx.getHeaderString(HEADER )
46
46
47
47
if (token.isNullOrBlank()) {
48
48
ctx.abortWith(Response .status(Response .Status .UNAUTHORIZED ).build())
You can’t perform that action at this time.
0 commit comments