File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,20 @@ class FaaS {
48
48
* @private
49
49
*/
50
50
this . _auth = function ( request , response , next ) {
51
- const applicationIdFromHeader = request . get ( 'bfast-application-id' ) ;
52
- const applicationIdFromQueryParams = request . query . appId ;
53
- request . headers [ 'x-bfast-app-id' ] = this . _appId ;
54
- request . headers [ 'x-bfast-project-id' ] = this . _projectId ;
55
- if ( this . _appId && this . _appId !== '' && this . _appId === applicationIdFromHeader ) {
56
- next ( ) ;
57
- } else if ( applicationIdFromQueryParams && applicationIdFromQueryParams === this . _appId ) {
58
- next ( ) ;
59
- } else {
60
- response . status ( 401 ) . json ( { message : 'Unauthorized request' } ) ;
61
- }
51
+ // const applicationIdFromHeader = request.get('bfast-application-id');
52
+ // const applicationIdFromQueryParams = request.query.appId;
53
+ // request.headers['x-bfast-app-id'] = this._appId;
54
+ // request.headers['x-bfast-project-id'] = this._projectId;
55
+ // if (this._appId && this._appId !== '' && this._appId === applicationIdFromHeader) {
56
+ // next();
57
+ // } else if (applicationIdFromQueryParams && applicationIdFromQueryParams === this._appId) {
58
+ // next();
59
+ // } else {
60
+ // response.status(401).json({message: 'Unauthorized request'});
61
+ // }
62
+
63
+ // user required to implement authentication logic to his/her functions
64
+ next ( ) ;
62
65
} ;
63
66
64
67
/**
You can’t perform that action at this time.
0 commit comments