Skip to content

Commit 5113817

Browse files
committed
Revert "allow downloading job candidate resume by direct link without token"
This reverts commit d3ae667.
1 parent d3ae667 commit 5113817

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/routes/JobCandidateRoutes.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ module.exports = {
4747
'/jobCandidates/:id/resume': {
4848
get: {
4949
controller: 'JobCandidateController',
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]
50+
method: 'downloadJobCandidateResume',
51+
auth: 'jwt',
52+
scopes: [constants.Scopes.READ_JOB_CANDIDATE, constants.Scopes.ALL_JOB_CANDIDATE]
5753
}
5854
}
5955
}

0 commit comments

Comments
 (0)