Skip to content

Commit

Permalink
tweak(TB Expressive) skip mfa for authorization baerer token requests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Jan 10, 2024
1 parent eef9d4c commit 4e0d098
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tine20/Tinebase/Expressive/Middleware/CheckRouteAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
try {
Admin_Controller_JWTAccessRoutes::doRouteAuth($routeHandler->getName(), $token);
$user = Tinebase_Core::getUser();
$unauthorized = false;
break 2;
} catch (Tinebase_Exception_AccessDenied $tead) {
if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) Tinebase_Core::getLogger()->info(__METHOD__ .
'::' . __LINE__ . ' returning with HTTP 401 unauthorized: ' . $tead->getMessage());
Expand Down

0 comments on commit 4e0d098

Please sign in to comment.