Home / Companies / Clerk / Blog / Post Details
Content Deep Dive

How to secure API Gateway using JWT and Lambda Authorizers with Clerk

Blog post from Clerk

Post Details
Company
Date Published
Author
Brian Morrison II
Word Count
2,497
Company Posts That Month
2
Language
English
Hacker News Points
-
Post removed?
No
Summary

API Gateway serves as a centralized entry point for accessing AWS services over HTTP, offering features like authorizers to secure API endpoints and prevent unauthorized access. Authorizers act as a security measure by verifying incoming requests before allowing them to reach the backend service, with options like JWT and Lambda authorizers providing different levels of flexibility and complexity. JWT authorizers utilize OpenID Connect Discovery endpoints to validate tokens, while Lambda authorizers allow custom code to determine request validity, supporting both REST and HTTP API Gateway types. Clerk's use of JWTs is compatible with API Gateway authorizers, enhancing security through session tokens, and enabling fine-tuned access control by modifying session tokens to include additional claims. The article explains how to configure both JWT and Lambda authorizers with Clerk, emphasizing the importance of securely managing API access to avoid risks like data exfiltration or unexpected AWS bills.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 37 980 177 77 +39%
Platform Engineering 2 292 56 32 -34%
Vector Search 1 2,613 257 91 +44%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.