Skip to content

Commit

Permalink
Merge branch 'pu/pm/TbExpressiveSkipMfaForAuthBearerToken' into '2024…
Browse files Browse the repository at this point in the history
….11'

tweak(TB Expressive) skip mfa for authorization baerer token requests

See merge request tine20/tine20!4737
  • Loading branch information
paulmhh committed Jan 10, 2024
2 parents eef9d4c + 4e0d098 commit 4086f68
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 4086f68

Please sign in to comment.