Skip to content

Commit

Permalink
Bypass client certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
Jnesselr committed Feb 21, 2024
1 parent 891cd14 commit 4ccad42
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Http/Middleware/AuthorizeSlackRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public function handle(Request $request, Closure $next): Response
]);
}

if (! $this->isCertificateValid($request)) {
return response()->json([
'response_type' => 'ephemeral',
'text' => "The certificate from slack didn't match the computed value. Did the certificate expire?",
]);
}
// if (! $this->isCertificateValid($request)) {
// return response()->json([
// 'response_type' => 'ephemeral',
// 'text' => "The certificate from slack didn't match the computed value. Did the certificate expire?",
// ]);
// }

$type = $request->get('type');

Expand Down

0 comments on commit 4ccad42

Please sign in to comment.