Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Release/0.1 #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ awsconfiguration.json
#amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
awsconfiguration.json
amplifyconfiguration.json
amplify-build-config.json
amplify-gradle-config.json
amplifytools.xcconfig

notes
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"amplify/.config": true,
"amplify/**/*-parameters.json": true,
"amplify/**/amplify.state": true,
"amplify/**/transform.conf.json": true,
"amplify/#current-cloud-backend": true,
"amplify/backend/amplify-meta.json": true,
"amplify/backend/awscloudformation": true
}
}
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

This auth starter implements withAuthenticator HOC to provide a basic authentication flow for signing up signing in users as well as protected client side routing using AWS Amplify. Auth features: User sign up, User sign in, Multi-factor Authentication, User sign-out.

[View Demo](https://master.d2ka7y7551sk8n.amplifyapp.com/)

![Amplify Auth](src/images/auth.gif)
[View Demo](https://apnacred.crediwatch.org/)

## Deploy with the AWS Amplify Console

Expand Down Expand Up @@ -34,8 +32,6 @@ The Amplify Console will fork this repo in your GitHub account, and then build a
amplify pull
```

![img](src/images/amplify-pull.mov)

4. Run locally

```
Expand Down
30 changes: 15 additions & 15 deletions amplify/.config/project-config.json
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"projectName": "authcra",
"version": "1.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
},
"providers": [
"awscloudformation"
]
"providers": [
"awscloudformation"
],
"projectName": "accounts",
"version": "3.0",
"frontend": "javascript",
"javascript": {
"framework": "react",
"config": {
"SourceDir": "src",
"DistributionDir": "build",
"BuildCommand": "npm run-script build",
"StartCommand": "npm run-script start"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Resources:
- ' }'
- '};'
Handler: index.handler
Runtime: nodejs8.10
Runtime: nodejs10.x
Timeout: '300'
Role: !GetAtt
- UserPoolClientRole
Expand Down
14 changes: 14 additions & 0 deletions amplify/backend/auth/userPoolGroups/parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"AuthRoleArn": {
"Fn::GetAtt": [
"AuthRole",
"Arn"
]
},
"UnauthRoleArn": {
"Fn::GetAtt": [
"UnauthRole",
"Arn"
]
}
}
Loading