# \#custom-authorizer

**URL:** https://community.auth0.com/tag/custom-authorizer/984.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [How to create a custom authorizer that serves a public+private endpoint?](https://community.auth0.com/t/how-to-create-a-custom-authorizer-that-serves-a-public-private-endpoint/11230)

<div class="topic-metadata">

**Author:** [@stephen.jensen.ihi](https://community.auth0.com/u/stephen.jensen.ihi)\
**Replies:** 1\
**Last updated:** [December 18, 2018, 5:55pm UTC](https://community.auth0.com/t/how-to-create-a-custom-authorizer-that-serves-a-public-private-endpoint/11230 "2018-12-18T17:55:11Z")

</div>

I want to use auth0 for a graphQL application (using the serverless framework). Since 1 endpoint serves both authorized and unauthorized content, I need a custom authorizer that will allow requests without a JWT, but wil…

---

## [AWS Lambda and API Gateway: How to get a user's Twitter access token key/access token secret from its sub ID?](https://community.auth0.com/t/aws-lambda-and-api-gateway-how-to-get-a-users-twitter-access-token-key-access-token-secret-from-its-sub-id/8438)

<div class="topic-metadata">

**Author:** [@behrangsa](https://community.auth0.com/u/behrangsa)\
**Replies:** 1\
**Last updated:** [October 10, 2017, 7:16pm UTC](https://community.auth0.com/t/aws-lambda-and-api-gateway-how-to-get-a-users-twitter-access-token-key-access-token-secret-from-its-sub-id/8438 "2017-10-10T19:16:07Z")

</div>

When adding authentication to an AWS Lambda function using a Custom Authorizer, the authorizer will create an IAM policy with a principal ID that according to this example, the principal ID should be set to the Auth0 sub …
