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:
20
20
swift run QuoteService
21
21
22
22
local-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
24
24
25
25
invoke :
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
28
28
29
29
# ##################### No Change required below this line ##########################
30
30
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ let simpleAuthorizerHandler:
78
78
context. logger. debug ( " +++ Simple Authorizer called +++ " )
79
79
80
80
guard let authToken = request. headers [ " authorization " ] ,
81
- authToken == " 123 "
81
+ authToken == " Bearer 123"
82
82
else {
83
83
context. logger. warning ( " Missing or invalid Authorization header " )
84
84
return . init( isAuthorized: false , context: [ : ] )
You can’t perform that action at this time.
0 commit comments