What can I use as use Cognito Identity Provider in local environment?

0

I develop a NET 6 Web REST API service (->RDS PostgreSQL) deployed as Lambda. I develop it in VS 2022 on Local Windows machine and use local PGSQL. When deploy it to Lambda it works with RDS. It is ok. Now I need to add Authentication and Authorization methods to use RBAC. My question is: In AWS I should use Cognito Identity Provider. What to use during development as Cognito in local environment?

Oleg
已提問 1 年前檢視次數 244 次
1 個回答
0
已接受的答案

During development, you can use Amazon Cognito User Pools or AWS Amplify Auth to add authentication and authorization to your .NET 6 Web REST API service.

Amazon Cognito User Pools allows you to create and maintain a user directory that can scale to hundreds of millions of users. You can use it to add sign-up, sign-in, and user management to your application. You can also customize the authentication flow to match your specific requirements.

AWS Amplify Auth is a service that provides a set of tools and libraries that you can use to add authentication and authorization to your application. It includes pre-built UI components that you can use to implement sign-up and sign-in pages, as well as APIs that you can use to manage users and sessions.

Both Amazon Cognito User Pools and AWS Amplify Auth can be used in your local environment for development and testing. You can configure your application to use a local development instance of the authentication service, which simulates the behavior of the production service.

To get started with Amazon Cognito User Pools or AWS Amplify Auth, you can follow the documentation provided by AWS. Here are the links to the relevant documentation:

Amazon Cognito User Pools: https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html AWS Amplify Auth: https://docs.amplify.aws/lib/auth/getting-started/q/platform/dotnet

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南