File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ local:
2020 swift run QuoteService
2121
2222local-invoke :
23- curl -v -H ' Authorization: 123' -X POST --data @events/GetQuote.json http://127.0.0.1:7000/invoke
23+ curl -v -H ' Authorization: Bearer 123' -X POST --data @events/GetQuote.json http://127.0.0.1:7000/invoke
2424
2525invoke :
26- # # curl -v -H 'Authorization: 123' https://<REPLACE_WITH_YOUR_API_URI>/stocks/AAPL
27- curl -v -H 'Authorization: 123' https://lq2rria2n6.execute-api.us-east-1.amazonaws.com/stocks/AAPL
26+ # # curl -v -H 'Authorization: Bearer 123' https://<REPLACE_WITH_YOUR_API_URI>/stocks/AAPL
27+ curl -v -H 'Authorization: Bearer 123' https://lq2rria2n6.execute-api.us-east-1.amazonaws.com/stocks/AAPL
2828
2929# ##################### No Change required below this line ##########################
3030
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ let simpleAuthorizerHandler:
7878 context. logger. debug ( " +++ Simple Authorizer called +++ " )
7979
8080 guard let authToken = request. headers [ " authorization " ] ,
81- authToken == " 123 "
81+ authToken == " Bearer 123"
8282 else {
8383 context. logger. warning ( " Missing or invalid Authorization header " )
8484 return . init( isAuthorized: false , context: [ : ] )
You can’t perform that action at this time.
0 commit comments