API Gateway REST API 支援原生 JWT 驗證器
閱讀 AWS 官方公告 ↗重點摘要
Amazon API Gateway 的 REST API 新增原生 JWT authorizer:Cognito 以外的 OIDC/OAuth 2.0 權杖不必再靠 Lambda 自寫驗證,改用設定即可。Gateway 每次請求都會檢查簽章、發行者、接收對象、到期時間與 claims;多租戶可接多個發行者,同一驗證器也能對各方法要求不同 scopes。支援區域型、邊緣最佳化與私有型 REST API,涵蓋所有商業區域與 AWS GovCloud (US)。 官方公告:https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-api-gateway-rest-authorizers-jwt/
官方事實
- API Gateway REST APIs 新增原生 JWT authorizer,可直接在 gateway 驗證 JSON Web Token。
- 可設定一個或多個 issuer、各 issuer 接受的 audience、允許的簽章演算法,以及 token 可包含的其他 claims。
- API Gateway 會在每個 request 上驗證 token 的簽章、issuer、audience、expiry 與 claims。
- 單一 authorizer 可附加至多個 methods,並可為各 method 要求不同 scopes。
- JWT authorizer 適用於 Regional、edge-optimized 與 private REST APIs,並於所有商業 AWS Regions 及 AWS GovCloud (US) Regions 提供。
完整口播文字
API Gateway 的 REST API 新增原生 JWT authorizer現在可以直接設定規則讓 gateway 驗證權杖Cognito 以外的 OIDC 或 OAuth 2.0 權杖過去得靠 Lambda 自寫驗證現在能用設定取代這段程式維運gateway 每次都會查簽章、發行者和接收對象也檢查到期時間與權杖屬性不只是把 token 內容讀出來如果多租戶 API 接多個發行者就能分別設定接收對象並限制簽章演算法不必只綁一個身分來源如果讀取和寫入共用驗證器仍能要求不同 scopes不過,要先確認現有 claims 設計能對上各方法的權限要求區域型、邊緣最佳化、私有型 REST API 都支援也涵蓋所有商業與美國政府區域適用範圍不只公開 API如果你正用 Lambda authorizer先對照現有驗證邏輯與各方法權限確認原生設定能涵蓋再評估替換
參考資料
- Amazon API Gateway REST APIs now support JWT authorizers · Amazon Web Services
快捷鍵:K 或空白鍵 播放/暫停 · J / L 倒退/快轉 5 秒 · M 靜音 · F 全螢幕
更多影片
-
0:56Amazon CloudWatch 監控 VPC 網路路徑健康
-
1:03AWS Control Tower 支援使用既有 Amazon S3 bucket 儲存日誌
-
0:58AWS IAM account access manager 新增三種受管政策
-
0:58Amazon CloudFront 標準日誌新增 CMCD 與其他日誌欄位
-
0:58CloudFront 來源 mTLS 支援 WebSocket 與 gRPC
-
1:03Amazon RDS 現已支援磁碟區快速初始化
-
1:04AWS Transit Gateway 原生整合 Gateway Load Balancer
-
0:48AWS Transform 提供 Well-Architected Agent 審查