File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
api-server/src/server/middlewares Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,6 @@ pipeline {
100
100
mv buildenvvarg deployenvvarg
101
101
echo "Fetching Buildvar"
102
102
./buildenv.sh -e ${ DEPLOY_ENV} -b ${ LOGICAL_ENV} -${ APPNAME} -buildvar
103
- echo "DEPLOY_ENV" ${ DEPLOY_ENV}
104
- echo "LOGICAL_ENV" ${ LOGICAL_ENV}
105
103
aws s3 cp s3://tc-platform-${ LOGICAL_ENV} /securitymanager/${ LOGICAL_ENV} -freecodecamp.env ./.env
106
104
"""
107
105
load ' awsenvconfg'
Original file line number Diff line number Diff line change @@ -72,19 +72,14 @@ export default function getRequestAuthorisation({
72
72
return function requestAuthorisation ( req , res , next ) {
73
73
const { origin } = getRedirectParams ( req ) ;
74
74
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 ) ) ;
83
76
if ( ! isAllowedPath ( path ) ) {
77
+ console . log ( '##### getting access token' ) ;
84
78
const { accessToken, error, jwt } = getAccessTokenFromRequest (
85
79
req ,
86
80
jwtSecret
87
81
) ;
82
+ console . log ( '##### get access token' , accessToken , error ) ;
88
83
if ( ! accessToken && error === errorTypes . noTokenFound ) {
89
84
throw wrapHandledError (
90
85
new Error ( 'Access token is required for this request' ) ,
You can’t perform that action at this time.
0 commit comments