Skip to content

Commit 7b0881a

Browse files
Merge pull request #22 from topcoder-platform/PROD-2033_hosted-api
PROD-2033 Remove debug logging for .env -> dev
2 parents d23844b + d00b5a6 commit 7b0881a

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Jenkinsfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ pipeline {
100100
mv buildenvvarg deployenvvarg
101101
echo "Fetching Buildvar"
102102
./buildenv.sh -e ${DEPLOY_ENV} -b ${LOGICAL_ENV}-${APPNAME}-buildvar
103-
echo "DEPLOY_ENV" ${DEPLOY_ENV}
104-
echo "LOGICAL_ENV" ${LOGICAL_ENV}
105103
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/${LOGICAL_ENV}-freecodecamp.env ./.env
106104
"""
107105
load 'awsenvconfg'

api-server/src/server/middlewares/request-authorization.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,14 @@ export default function getRequestAuthorisation({
7272
return function requestAuthorisation(req, res, next) {
7373
const { origin } = getRedirectParams(req);
7474
const { path } = req;
75-
76-
console.log('######### multi-line test', 'line 1\nline 2');
77-
console.log('######### jwtSecret length', jwtSecret?.length);
78-
console.log('######### jwtSecret - start', jwtSecret?.substring(0, 50));
79-
console.log(
80-
'######### jwtSecret - end',
81-
jwtSecret?.substring(jwtSecret?.length - 50)
82-
);
75+
console.log('######## requesting auth', path, isAllowedPath(path));
8376
if (!isAllowedPath(path)) {
77+
console.log('##### getting access token');
8478
const { accessToken, error, jwt } = getAccessTokenFromRequest(
8579
req,
8680
jwtSecret
8781
);
82+
console.log('##### get access token', accessToken, error);
8883
if (!accessToken && error === errorTypes.noTokenFound) {
8984
throw wrapHandledError(
9085
new Error('Access token is required for this request'),

0 commit comments

Comments
 (0)