-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ecb755
commit ab49c8e
Showing
11 changed files
with
264 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#amplify-do-not-edit-begin | ||
amplify/\#current-cloud-backend | ||
amplify/.config/local-* | ||
amplify/logs | ||
amplify/mock-data | ||
amplify/mock-api-resources | ||
amplify/backend/amplify-meta.json | ||
amplify/backend/.temp | ||
build/ | ||
dist/ | ||
node_modules/ | ||
aws-exports.js | ||
awsconfiguration.json | ||
amplifyconfiguration.json | ||
amplifyconfiguration.dart | ||
amplify-build-config.json | ||
amplify-gradle-config.json | ||
amplifytools.xcconfig | ||
.secret-* | ||
**.sample | ||
#amplify-do-not-edit-end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"projectName": "kayleejohnstonxyz", | ||
"version": "3.1", | ||
"frontend": "javascript", | ||
"javascript": { | ||
"framework": "none", | ||
"config": { | ||
"SourceDir": "src", | ||
"DistributionDir": "dist", | ||
"BuildCommand": "npm run-script build", | ||
"StartCommand": "npm run-script start" | ||
} | ||
}, | ||
"providers": [ | ||
"awscloudformation" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Getting Started with Amplify CLI | ||
This directory was generated by [Amplify CLI](https://docs.amplify.aws/cli). | ||
|
||
Helpful resources: | ||
- Amplify documentation: https://docs.amplify.aws | ||
- Amplify CLI documentation: https://docs.amplify.aws/cli | ||
- More details on this folder & generated files: https://docs.amplify.aws/cli/reference/files | ||
- Join Amplify's community: https://amplify.aws/community/ |
48 changes: 48 additions & 0 deletions
48
amplify/backend/auth/kayleejohnstonxyzf78b1713/cli-inputs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"version": "1", | ||
"cognitoConfig": { | ||
"identityPoolName": "kayleejohnstonxyzf78b1713_identitypool_f78b1713", | ||
"allowUnauthenticatedIdentities": false, | ||
"resourceNameTruncated": "kayleef78b1713", | ||
"userPoolName": "kayleejohnstonxyzf78b1713_userpool_f78b1713", | ||
"autoVerifiedAttributes": [ | ||
"email" | ||
], | ||
"mfaConfiguration": "OFF", | ||
"mfaTypes": [ | ||
"SMS Text Message" | ||
], | ||
"smsAuthenticationMessage": "Your authentication code is {####}", | ||
"smsVerificationMessage": "Your verification code is {####}", | ||
"emailVerificationSubject": "Your verification code", | ||
"emailVerificationMessage": "Your verification code is {####}", | ||
"defaultPasswordPolicy": false, | ||
"passwordPolicyMinLength": 8, | ||
"passwordPolicyCharacters": [], | ||
"requiredAttributes": [ | ||
"email" | ||
], | ||
"aliasAttributes": [], | ||
"userpoolClientGenerateSecret": false, | ||
"userpoolClientRefreshTokenValidity": 30, | ||
"userpoolClientWriteAttributes": [ | ||
"email" | ||
], | ||
"userpoolClientReadAttributes": [ | ||
"email" | ||
], | ||
"userpoolClientLambdaRole": "kayleef78b1713_userpoolclient_lambda_role", | ||
"userpoolClientSetAttributes": false, | ||
"sharedId": "f78b1713", | ||
"resourceName": "kayleejohnstonxyzf78b1713", | ||
"authSelections": "identityPoolAndUserPool", | ||
"useDefault": "default", | ||
"usernameAttributes": [ | ||
"email" | ||
], | ||
"userPoolGroupList": [], | ||
"serviceName": "Cognito", | ||
"usernameCaseSensitive": false, | ||
"useEnabledMfas": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"auth": { | ||
"kayleejohnstonxyzf78b1713": { | ||
"customAuth": false, | ||
"dependsOn": [], | ||
"frontendAuthConfig": { | ||
"mfaConfiguration": "OFF", | ||
"mfaTypes": [ | ||
"SMS" | ||
], | ||
"passwordProtectionSettings": { | ||
"passwordPolicyCharacters": [], | ||
"passwordPolicyMinLength": 8 | ||
}, | ||
"signupAttributes": [ | ||
"EMAIL" | ||
], | ||
"socialProviders": [], | ||
"usernameAttributes": [ | ||
"EMAIL" | ||
], | ||
"verificationMechanisms": [ | ||
"EMAIL" | ||
] | ||
}, | ||
"providerPlugin": "awscloudformation", | ||
"service": "Cognito" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"Key": "user:Stack", | ||
"Value": "{project-env}" | ||
}, | ||
{ | ||
"Key": "user:Application", | ||
"Value": "{project-name}" | ||
} | ||
] |
13 changes: 13 additions & 0 deletions
13
amplify/backend/types/amplify-dependent-resources-ref.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type AmplifyDependentResourcesAttributes = { | ||
"auth": { | ||
"kayleejohnstonxyzf78b1713": { | ||
"AppClientID": "string", | ||
"AppClientIDWeb": "string", | ||
"IdentityPoolId": "string", | ||
"IdentityPoolName": "string", | ||
"UserPoolArn": "string", | ||
"UserPoolId": "string", | ||
"UserPoolName": "string" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"features": { | ||
"graphqltransformer": { | ||
"addmissingownerfields": true, | ||
"improvepluralization": false, | ||
"validatetypenamereservedwords": true, | ||
"useexperimentalpipelinedtransformer": true, | ||
"enableiterativegsiupdates": true, | ||
"secondarykeyasgsi": true, | ||
"skipoverridemutationinputtypes": true, | ||
"transformerversion": 2, | ||
"suppressschemamigrationprompt": true, | ||
"securityenhancementnotification": false, | ||
"showfieldauthnotification": false, | ||
"usesubusernamefordefaultidentityclaim": true, | ||
"usefieldnameforprimarykeyconnectionfield": false, | ||
"enableautoindexquerynames": true, | ||
"respectprimarykeyattributesonconnectionfield": true, | ||
"shoulddeepmergedirectiveconfigdefaults": false, | ||
"populateownerfieldforstaticgroupauth": true | ||
}, | ||
"frontend-ios": { | ||
"enablexcodeintegration": true | ||
}, | ||
"auth": { | ||
"enablecaseinsensitivity": true, | ||
"useinclusiveterminology": true, | ||
"breakcirculardependency": true, | ||
"forcealiasattributes": false, | ||
"useenabledmfas": true | ||
}, | ||
"codegen": { | ||
"useappsyncmodelgenplugin": true, | ||
"usedocsgeneratorplugin": true, | ||
"usetypesgeneratorplugin": true, | ||
"cleangeneratedmodelsdirectory": true, | ||
"retaincasestyle": true, | ||
"addtimestampfields": true, | ||
"handlelistnullabilitytransparently": true, | ||
"emitauthprovider": true, | ||
"generateindexrules": true, | ||
"enabledartnullsafety": true, | ||
"generatemodelsforlazyloadandcustomselectionset": false | ||
}, | ||
"appsync": { | ||
"generategraphqlpermissions": true | ||
}, | ||
"latestregionsupport": { | ||
"pinpoint": 1, | ||
"translate": 1, | ||
"transcribe": 1, | ||
"rekognition": 1, | ||
"textract": 1, | ||
"comprehend": 1 | ||
}, | ||
"project": { | ||
"overrides": true | ||
} | ||
}, | ||
"debug": { | ||
"shareProjectConfig": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Command Hooks | ||
|
||
Command hooks can be used to run custom scripts upon Amplify CLI lifecycle events like pre-push, post-add-function, etc. | ||
|
||
To get started, add your script files based on the expected naming convention in this directory. | ||
|
||
Learn more about the script file naming convention, hook parameters, third party dependencies, and advanced configurations at https://docs.amplify.aws/cli/usage/command-hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"dev": { | ||
"awscloudformation": { | ||
"AuthRoleName": "amplify-kayleejohnstonxyz-dev-180204-authRole", | ||
"UnauthRoleArn": "arn:aws:iam::793766437099:role/amplify-kayleejohnstonxyz-dev-180204-unauthRole", | ||
"AuthRoleArn": "arn:aws:iam::793766437099:role/amplify-kayleejohnstonxyz-dev-180204-authRole", | ||
"Region": "us-east-2", | ||
"DeploymentBucketName": "amplify-kayleejohnstonxyz-dev-180204-deployment", | ||
"UnauthRoleName": "amplify-kayleejohnstonxyz-dev-180204-unauthRole", | ||
"StackName": "amplify-kayleejohnstonxyz-dev-180204", | ||
"StackId": "arn:aws:cloudformation:us-east-2:793766437099:stack/amplify-kayleejohnstonxyz-dev-180204/847c2020-ba19-11ee-a752-0a9828f1b34b", | ||
"AmplifyAppId": "d2p2gc7fdj2lrx" | ||
}, | ||
"categories": { | ||
"auth": { | ||
"kayleejohnstonxyzf78b1713": {} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Cute Login</title> | ||
<style> | ||
body { | ||
font-family: 'Arial', sans-serif; | ||
background-color: #f5f5f5; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
margin: 0; | ||
} | ||
|
||
.login-container { | ||
background-color: #fff; | ||
padding: 20px; | ||
border-radius: 10px; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
text-align: center; | ||
} | ||
|
||
.login-container img { | ||
width: 80px; | ||
border-radius: 50%; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.login-container input { | ||
width: 100%; | ||
padding: 10px; | ||
margin: 10px 0; | ||
box-sizing: border-box; | ||
border: 1px solid #ccc; | ||
border-radius: 5px; | ||
} | ||
|
||
.login-container button { | ||
background-color: #4CAF50; | ||
color: #fff; | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
} | ||
</style> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Login Page</title> | ||
<!-- Include Amplify dependencies --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/aws-amplify.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/aws-amplify-react.js"></script> | ||
</head> | ||
<body> | ||
<h1>Login</h1> | ||
|
||
<!-- Amplify login component --> | ||
<amplify-authenticator> | ||
<div slot="sign-in"> | ||
<amplify-sign-in | ||
slot="sign-in" | ||
usernameAlias="email" | ||
></amplify-sign-in> | ||
</div> | ||
</amplify-authenticator> | ||
|
||
<div class="login-container"> | ||
<img src="cute-logo.png" alt="Cute Logo"> | ||
<h2>Cute Login</h2> | ||
<form action="https://kayleejohnston.auth.us-east-2.amazoncognito.com" method="post"> | ||
<input type="text" name="username" placeholder="Username" required> | ||
<br> | ||
<input type="password" name="password" placeholder="Password" required> | ||
<br> | ||
<button type="submit">Login</button> | ||
</form> | ||
</div> | ||
|
||
<script> | ||
// Configure Amplify | ||
Amplify.configure({ | ||
Auth: { | ||
region: 'YOUR_AWS_REGION', | ||
userPoolId: 'YOUR_USER_POOL_ID', | ||
userPoolWebClientId: 'YOUR_APP_CLIENT_ID', | ||
}, | ||
}); | ||
</script> | ||
</body> | ||
</html> |