Skip to content

Commit 2fd04ae

Browse files
committed
log authResponse
1 parent 942b92e commit 2fd04ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/auth/authorizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import print_function
22
from auth_utils import AuthPolicy
3+
import json
34

45
def lambda_handler(event, context):
56
"""Do not print the auth token unless absolutely necessary """
@@ -23,6 +24,7 @@ def lambda_handler(event, context):
2324

2425
# Finally, build the policy
2526
authResponse = policy.build()
27+
print("Auth response: " + json.dumps(authResponse, indent=4))
2628

2729
# context = {
2830
# 'key': 'value', # $context.authorizer.key -> value

0 commit comments

Comments
 (0)