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 {
731
731
let authStrategyName = null ;
732
732
if ( endpoint . authorizer ) {
733
733
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
+ }
734
739
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
+ }
735
745
if ( endpoint . authorizer . arn ) {
736
746
this . serverlessLog ( `WARNING: Serverless Offline does not support non local authorizers: ${ endpoint . authorizer . arn } ` ) ;
737
747
You can’t perform that action at this time.
0 commit comments