Fix deployment artifact token lookup

This commit is contained in:
Chirag Aggarwal
2026-05-23 18:16:35 +05:30
parent dc31d1960b
commit 3980624bb6
+1 -1
View File
@@ -1185,7 +1185,7 @@ return function (Container $context): void {
}, ['request', 'project', 'team', 'user']);
$context->set('resourceToken', function ($project, $dbForProject, $request, Authorization $authorization) {
$tokenJWT = $request->getParam('token');
$tokenJWT = $request->getQuery('token');
if (! empty($tokenJWT) && ! $project->isEmpty()) { // JWT authentication
// Use a large but reasonable maxAge to avoid auto-exp when token has no expiry