Skip to content

Commit 3db81d5

Browse files
authored
Merge pull request serverless#309 from BrianAndersen78/patch-1
Update readme.md
2 parents ce34fcd + e6c7109 commit 3db81d5

File tree

1 file changed

+6
-3
lines changed
  • aws-python-auth0-custom-authorizers-api

1 file changed

+6
-3
lines changed

aws-python-auth0-custom-authorizers-api/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,25 @@ Custom Authorizers allow you to run an AWS Lambda Function before your targeted
4242

4343
7. You can either run your frontend locally or deploy your frontend to host of your choosing. However in either case, make sure to configure the `Allowed Callback URL` and `Allowed Origins` in your auth0 client in the [auth0 dashboard](https://manage.auth0.com). An example of how to run your frontend locally:
4444

45-
```cd frontend;
46-
python -m http.server```
45+
```
46+
cd frontend;
47+
python -m http.server
48+
```
4749

4850

4951
## Custom authorizer functions
5052

5153
[Custom authorizers functions](https://aws.amazon.com/blogs/compute/introducing-custom-authorizers-in-amazon-api-gateway/) are executed before a Lambda function is executed and return an Error or a Policy document.
5254

53-
The Custom authorizer function is passed an `event` object as below:
55+
The Custom authorizer function is passing an `event` object to API Gateway as below:
5456
```javascript
5557
{
5658
"type": "TOKEN",
5759
"authorizationToken": "<Incoming bearer token>",
5860
"methodArn": "arn:aws:execute-api:<Region id>:<Account id>:<API id>/<Stage>/<Method>/<Resource path>"
5961
}
6062
```
63+
You will have to change this policy to accommodate your needs. The default reply provided, will only authorize one endpoint!
6164

6265
## Frontend
6366

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy