We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942b92e commit 2fd04aeCopy full SHA for 2fd04ae
backend/auth/authorizer.py
@@ -1,5 +1,6 @@
1
from __future__ import print_function
2
from auth_utils import AuthPolicy
3
+import json
4
5
def lambda_handler(event, context):
6
"""Do not print the auth token unless absolutely necessary """
@@ -23,6 +24,7 @@ def lambda_handler(event, context):
23
24
25
# Finally, build the policy
26
authResponse = policy.build()
27
+ print("Auth response: " + json.dumps(authResponse, indent=4))
28
29
# context = {
30
# 'key': 'value', # $context.authorizer.key -> value
0 commit comments