Comments (4)
Hey, I assume you are running sam build && sam local start-api
command in the http-apis
folder. I can get the Hello auth
output as the screenshots below.
What is your SAM CLI version? Mine is 1.94.0
from sam-local-authorizer-example.
Hi @Willis0826, it seems I overlooked the "sam build" command.
Your code works perfectly, but mine doesn't—I'll investigate further.
On another note, have you tried debugging with VSCode by adding a breakpoint to the auth function and the pong lambda?
For instance, if I pass a Bearer token in JWT format to the auth function and want to check its validity through debugging, do you think that's possible?
from sam-local-authorizer-example.
Ah, please feel free to let me know if you need any help with your SAM project.
I tried the VSCode debugger and AWS SAM stuff today, but I couldn't make it work. I also found out you have an open issue aws/aws-sam-cli#3749
The issue I faced is that I can not expose the debug port with sam local start-api -d 5858
from sam-local-authorizer-example.
Hey, I will close this issue for now. But please feel free to re-open this issue, if you would like me help with the SAM config.
from sam-local-authorizer-example.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sam-local-authorizer-example.