How do I create a Cognito authorizer for the Amplify REST API?

0

I was using the Amplify React project and added an API Gateway (REST API).

I want to add a Cognito authorizer for that REST API.

Its default JSON is

{
  "version": 1,
  "paths": {
    "/notification": {
      "name": "/notification",
      "lambdaFunction": "WebhookNotification",
      "permissions": {
        "groups": {
          "Admin": [
            "create",
            "read",
            "update",
            "delete"
          ],
          "Customers": [
            "create",
            "read",
            "update",
            "delete"
          ]
        },
        "setting": "private"
      }
    }
  }
}
1回答
0

In order to define Cognito authorization you can refer the below link which helps you to define the same in your amplify application and the changes that are required to be made.

[+] https://docs.amplify.aws/javascript/build-a-backend/restapi/customize-authz/#cognito-user-pool-authorization

AWS
Srinath
回答済み 4ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ