Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.
/ rpc_ts_aws_cognito Public archive

Example authentication for rpc_ts with AWS Cognito

License

Notifications You must be signed in to change notification settings

aiden/rpc_ts_aws_cognito

Repository files navigation

rpc_ts_aws_cognito: Example authentication for rpc_ts with AWS Cognito

CircleCI typescript License: MIT code style: prettier

This is an example of how to use AWS Cognito to provide authentication for rpc_ts APIs. It is also a set of best practices.

Usage

git clone https://github.com/aiden/rpc_ts_aws_cognito.git
cd rpc_ts_aws_cognito
yarn

# As we use AWS Cognito, an AWS service, we must provide credentials. See
# `terraform/permissions.tf` for the required IAM permissions.
export AWS_ACCESS_KEY_ID='XXXXXX'
export AWS_SECRET_KEY='xxxxxx'

# Test that an example API behind an AWS Cognito authentication middleware can be accessed.
yarn test

License

rpc_ts_aws_cognito is licensed under the MIT License.