Skip to content

Commit d3ae667

Browse files
committed
allow downloading job candidate resume by direct link without token
1 parent 8dab6fa commit d3ae667

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/routes/JobCandidateRoutes.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ module.exports = {
4747
'/jobCandidates/:id/resume': {
4848
get: {
4949
controller: 'JobCandidateController',
50-
method: 'downloadJobCandidateResume',
51-
auth: 'jwt',
52-
scopes: [constants.Scopes.READ_JOB_CANDIDATE, constants.Scopes.ALL_JOB_CANDIDATE]
50+
method: 'downloadJobCandidateResume'
51+
// TODO: we have to protect this endpoint somehow
52+
// but at the moment in the client app we are clicking this link
53+
// as a regular download link and we cannot pass JWT token to it
54+
// how to deal with it?
55+
// auth: 'jwt',
56+
// scopes: [constants.Scopes.READ_JOB_CANDIDATE, constants.Scopes.ALL_JOB_CANDIDATE]
5357
}
5458
}
5559
}

0 commit comments

Comments
 (0)