@@ -58,21 +58,22 @@ let policyAuthorizerHandler:
5858//
5959// This code doesn't perform any type of token validation. It should be used as a reference only.
6060let simpleAuthorizerHandler :
61- @Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws -> APIGatewayLambdaAuthorizerSimpleResponse = {
62- ( _: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
61+ @Sendable ( APIGatewayLambdaAuthorizerRequest, LambdaContext) async throws ->
62+ APIGatewayLambdaAuthorizerSimpleResponse = {
63+ ( _: APIGatewayLambdaAuthorizerRequest , context: LambdaContext ) in
6364
64- context. logger. debug ( " +++ Simple Authorizer called +++ " )
65+ context. logger. debug ( " +++ Simple Authorizer called +++ " )
6566
66- // typically, this function will check the validity of the incoming token received in the request
67+ // typically, this function will check the validity of the incoming token received in the request
6768
68- return APIGatewayLambdaAuthorizerSimpleResponse (
69- // this is the authorization decision: yes or no
70- isAuthorized: true ,
69+ return APIGatewayLambdaAuthorizerSimpleResponse (
70+ // this is the authorization decision: yes or no
71+ isAuthorized: true ,
7172
72- // this is additional context we want to return to the caller
73- context: [ " abc1 " : " xyz1 " ]
74- )
75- }
73+ // this is additional context we want to return to the caller
74+ context: [ " abc1 " : " xyz1 " ]
75+ )
76+ }
7677
7778// create the runtime and start polling for new events.
7879// in this demo we use the simple authorizer handler
0 commit comments