Skip to content

Integrating Amazon Cognito With Single Page Application (Vue.js).

License

Notifications You must be signed in to change notification settings

washiz99/aws-cognito-spa-demo

Repository files navigation

aws-cognito-spa-demo

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

npm install --save amazon-cognito-auth-js
npm install --save amazon-cognito-identity-js
npm install --save vue-router
npm install --save axios

create user pool

Pool name: spa-demo

get current user pools list.

aws cognito-idp list-user-pools --max-results 10

aws cognito-idp describe-user-pool --user-pool-id aws cognito-idp describe-user-pool-client --user-pool-id --client-id aws cognito-idp create-user-pool-domain --user-pool-id --domain

aws cognito-idp delete-user-pool-domain --domain --user-pool-id aws cognito-idp delete-user-pool --user-pool-id

aws cognito-idp create-user-pool --pool-name
--auto-verified-attributes email
--schema Name=email,AttributeDataType=String,DeveloperOnlyAttribute=false,Mutable=true,Required=true,StringAttributeConstraints={MinLength="0",MaxLength="2048"}

aws cognito-idp create-user-pool-client --user-pool-id --client-name
--callback-urls '["http://localhost:8080/login/oauth2/code/cognito"]'
--logout-urls '["http://localhost:8080/logout"]'
--allowed-o-auth-flows implicit
--allowed-o-auth-scopes email openid --supported-identity-providers COGNITO --allowed-o-auth-flows-user-pool-client

About

Integrating Amazon Cognito With Single Page Application (Vue.js).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published