Skip to content

Commit 7a39b3b

Browse files
authored
Merge pull request #2 from heitorlessa/twitch
[WIP] EP1 - Project bootstrapping and AuthN/AuthZ with Cognito
2 parents cd80b06 + fa483cd commit 7a39b3b

File tree

7 files changed

+650
-7
lines changed

7 files changed

+650
-7
lines changed

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ yarn-error.log*
2020
*.sln
2121
*.sw*
2222

23+
# Misc.
24+
25+
docs/
26+
2327
#amplify
2428
amplify/\#current-cloud-backend
2529
amplify/.config/local-*
2630
amplify/backend/amplify-meta.json
2731
amplify/backend/awscloudformation
28-
amplify/team-provider-info.json
2932
build/
3033
dist/
3134
node_modules/
3235
aws-exports.js
33-
awsconfiguration.json
34-
35-
# Misc.
36-
37-
docs/
36+
awsconfiguration.json
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"projectName": "awsserverlessairline",
3+
"version": "2.0",
4+
"frontend": "javascript",
5+
"javascript": {
6+
"framework": "vue",
7+
"config": {
8+
"SourceDir": "src",
9+
"DistributionDir": "dist",
10+
"BuildCommand": "npm run-script build",
11+
"StartCommand": "npm run-script serve"
12+
}
13+
},
14+
"providers": [
15+
"awscloudformation"
16+
]
17+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"userPoolName": "serverlessairlinecognitouserpool",
3+
"autoVerifiedAttributes": [
4+
"email"
5+
],
6+
"mfaConfiguration": "OPTIONAL",
7+
"mfaTypes": [
8+
"SMS Text Message",
9+
"TOTP"
10+
],
11+
"roleName": "serverlessaairlineauth_sns-role",
12+
"roleExternalId": "serverlessaairlineauth_role_external_id",
13+
"policyName": "serverlessaairlineauth-sns-policy",
14+
"smsAuthenticationMessage": "Your authentication code is {####}",
15+
"smsVerificationMessage": "Your verification code is {####}",
16+
"emailVerificationSubject": "Your verification code",
17+
"emailVerificationMessage": "Your verification code is {####}",
18+
"defaultPasswordPolicy": false,
19+
"passwordPolicyMinLength": 8,
20+
"passwordPolicyCharacters": [
21+
"Requires Lowercase",
22+
"Requires Uppercase",
23+
"Requires Numbers",
24+
"Requires Symbols"
25+
],
26+
"requiredAttributes": [
27+
"family_name",
28+
"given_name",
29+
"phone_number",
30+
"email"
31+
],
32+
"userpoolClientName": "serverlessaairlineauth_app_client",
33+
"userpoolClientGenerateSecret": true,
34+
"userpoolClientRefreshTokenValidity": 30,
35+
"userpoolClientReadAttributes": [
36+
"email",
37+
"family_name",
38+
"given_name",
39+
"phone_number",
40+
"preferred_username",
41+
"email_verified",
42+
"phone_number_verified",
43+
"custom:luggage_preference",
44+
"custom:meal_preference"
45+
],
46+
"mfaLambdaRole": "serverlessaairlineauth_totp_lambda_role",
47+
"mfaLambdaLogPolicy": "serverlessaairlineauth_totp_lambda_log_policy",
48+
"mfaPassRolePolicy": "serverlessaairlineauth_totp_pass_role_policy",
49+
"mfaLambdaIAMPolicy": "serverlessaairlineauth_totp_lambda_iam_policy",
50+
"userpoolClientLambdaRole": "serverlessaairlineauth_userpoolclient_lambda_role",
51+
"userpoolClientLogPolicy": "serverlessaairlineauth_userpoolclient_lambda_log_policy",
52+
"userpoolClientLambdaPolicy": "serverlessaairlineauth_userpoolclient_lambda_iam_policy",
53+
"userpoolClientSetAttributes": true,
54+
"useDefault": "manual",
55+
"authSelections": "userPoolOnly",
56+
"resourceName": "serverlessaairlineauth",
57+
"userpoolClientWriteAttributes": [
58+
"email",
59+
"family_name",
60+
"given_name",
61+
"phone_number",
62+
"custom:luggage_preference",
63+
"custom:meal_preference"
64+
],
65+
"authRoleName": {
66+
"Ref": "AuthRoleName"
67+
},
68+
"unauthRoleName": {
69+
"Ref": "UnauthRoleName"
70+
},
71+
"authRoleArn": {
72+
"Fn::GetAtt": [
73+
"AuthRole",
74+
"Arn"
75+
]
76+
},
77+
"unauthRoleArn": {
78+
"Fn::GetAtt": [
79+
"UnauthRole",
80+
"Arn"
81+
]
82+
}
83+
}

0 commit comments

Comments
 (0)