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?

1 Answer
0
Accepted Answer

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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions