File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -731,7 +731,17 @@ class Offline {
731731 let authStrategyName = null ;
732732 if ( endpoint . authorizer ) {
733733 let authFunctionName = endpoint . authorizer ;
734+ if ( typeof authFunctionName === 'string' && authFunctionName . toUpperCase ( ) === 'AWS_IAM' ) {
735+ this . serverlessLog ( 'WARNING: Serverless Offline does not support the AWS_IAM authorization type' ) ;
736+
737+ return null ;
738+ }
734739 if ( typeof endpoint . authorizer === 'object' ) {
740+ if ( endpoint . authorizer . type && endpoint . authorizer . type . toUpperCase ( ) === 'AWS_IAM' ) {
741+ this . serverlessLog ( 'WARNING: Serverless Offline does not support the AWS_IAM authorization type' ) ;
742+
743+ return null ;
744+ }
735745 if ( endpoint . authorizer . arn ) {
736746 this . serverlessLog ( `WARNING: Serverless Offline does not support non local authorizers: ${ endpoint . authorizer . arn } ` ) ;
737747
You can’t perform that action at this time.
0 commit comments