This is an API GAteway Lambda custom authorizer that authenticates with Auth0.
It provides bot a aready to use authorizer as well as libraries to write your custom authorizers using Auth0.
If the provided defaultAuthorizer
is used for an API, the following conventions
are used:
- All urls starting with
/user/{userId}/...
are allowed only to the user with the givenuserId
(whereuserId
is the Auth0 useruser_id
field value) or to users in theAdmin
authorization group (See the Auth0 Authorization Extension) - All urls starting with
/admin/...
are allowd only to users in theAdmin
authorization group - All other urls are Allowed only to logged in users
If you endpoint needs different authorizations, you will need to write a custom authorizer as follows.
TODO