• This repository has been archived on 01/Apr/2019
  • Stars
    star
    116
  • Rank 302,108 (Top 6 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library for integrating Facebook React and Amazon Cognito

React Cognito

You can now use Amazon Cognito to handle authentication and authorization for your mobile and web applications. This is particularly useful for serverless single-page applications (SPAs). SPAs can be hosted in S3 buckets and use AWS services such as API Gateway, Lambda, S3, DynamoDB and others without requiring a separate server.

This Javascript package provides a set of React components and supporting code to make integrating with Cognito very easy, if you are using React and Redux.

Full documentation for this package is available.

This package is available on npm.

AWS Amplify

NOTE: AWS have now released AWS Amplify, which might be more suitable for your needs than react-cognito.

Introduction

This library should be installed using npm, and depends on React, Redux, React Router, and of course the underlying AWS packages.

In a nutshell this library allows you to write all of your own forms and UI components, but abstracts out all of the interfacing with Cognito, and determining which parts of UI should be rendered.

Redux State

This package depends entirely on Redux to manage client-side state. As well as storing important state variables there is also a client-side state machine that helps you display the correct UI depending on the state of the user with respect to their authentication status.

All state is stored in redux under the key cognito. in there you can find:

user

This is either null or a valid CognitoUser object. You are unlikely to need to use this yourself, and it is located by components using the context.

state

This is a string indicating the client-side state. See State Machine below.

error

If errors are encountered from the Cognito API they are stored here, and then exposed as appropriate to UI components. This means most error handling is transparent and automatic for you.

userPool

The CognitoUserPool object, used to create users.

attributes

This contains all the user's Cognito attributes, if you've chosen to fetch them at login (the default).

creds

A CognitoIdentityCredentials object, used to authenticate against a Federated User Pool. Contains no secret material.

config

The configuration provided by the application, used to contact Cognito.

More Repositories

1

react-cognito-example

JavaScript
58
star
2

wagtailtinymce

A TinyMCE editor integration for Wagtail
JavaScript
43
star
3

builddash

Buildbot dashboard
Python
7
star
4

ses-smtp-credentials-cdk

Generate SMTPCredentials for sending mail via SES
TypeScript
7
star
5

django-zap

Automates the destruction and recreation of django databases
Python
7
star
6

django-json-settings

Support for local settings in json files
Python
7
star
7

shenzhou

Buildbot + KVM powered Ubuntu/Debian package builder
Shell
6
star
8

django-ldap-pixiedust

Two way synchronisation for Django and LDAP
Python
6
star
9

sops-secretsmanager-cdk

Safely load secrets from sops into secretsmanager using the CDK
TypeScript
5
star
10

caroline

Mandatory testing programme
Python
5
star
11

leetveld

Django hosted private rietveld for code review
Python
5
star
12

linkedin-cognito-openid-wrapper

JavaScript
4
star
13

isotoma.recipe.facts

Facts about the environment you are buildouting in
Python
4
star
14

k8ecr

Utility for managing ecr repositories with kubernetes
Go
4
star
15

db-operator

A Kubernetes operator for managing databases.
Go
4
star
16

custom-metrics-apiserver-ingress-nginx

A kubernetes custom metrics apiserver adapter for advanced VTS traffic statistics from the Nginx ingress controller, which can be used directly by the horizontal pod autoscaler.
Go
4
star
17

sidekick

Yaybu for developer VM's
Python
3
star
18

isotoma.recipe.django

isotoma.recipe.django
Python
3
star
19

isotoma.plone.heroku

Can has Plone on heroku
Python
3
star
20

isotoma.recipe.apache

isotoma.recipe.apache
Python
3
star
21

boiler

Python
3
star
22

apparmor_monkeys

More secure and simple AppArmor profiles for python
Python
3
star
23

yaybu-examples

An example set of yaybu configuration
Python
3
star
24

FuncBrows

Python
3
star
25

pkgsync

Synchronise packages between two python software repositories
Python
3
star
26

isotoma.recipe.pound

isotoma.recipe.pound
Python
3
star
27

aws-accessc

SSO Access Control for AWS
Python
3
star
28

precog

For preventing your crimes, before you can commit them.
Python
3
star
29

isotoma.recipe.plonetools

isotoma.recipe.plonetools
Python
3
star
30

isotoma.buildout.basicauth

A buildout extension to support basic HTTP authentication for find-links and recipe downloads
Python
3
star
31

charts

Isotoma Public Helm Charts
Smarty
2
star
32

isotoma.recipe.template

isotoma.recipe.template
Python
2
star
33

allow-connections-to-ecs-service-from-network-load-balancer-cdk

TypeScript
2
star
34

isotoma.recipe.crond

isotoma.recipe.crond
Python
2
star
35

django-dumprestore

Dump and restore from Django
Python
2
star
36

isotoma.recipe.gocaptain

isotoma.recipe.gocaptain
Python
2
star
37

isotoma.recipe.squid

isotoma.recipe.squid
Python
2
star
38

yaybu-website

Python
2
star
39

isotoma.recipe.postdeploy

Python
2
star
40

isotoma.recipe.eggpaths

Get the paths to eggs that have been installed by buildout, so they can be referenced elsewhere
Python
2
star
41

ScriptSite

Create test runs from test scripts
Python
2
star
42

isotoma.buildout.autodevelop

isotoma.buildout.autodevelop
Python
2
star
43

isotoma.logtail

Web-based log tailing
Python
2
star
44

isotoma.recipe.depcheck

isotoma.recipe.depcheck
Python
2
star
45

secure-default-vpc-security-group-cdk

TypeScript
2
star
46

missingbits

Buildout helpers
Python
2
star
47

cdk-manager

TypeScript
2
star
48

libapache2-mod-proxyerrorcapture

Because Apache wasn't good enough
C
1
star
49

testsite

Manage XML Test Scripts
Python
1
star
50

badgerproxy

Python
1
star
51

isotoma.recipe.stunnel

Simple recipe for stripping SSL off incoming traffic
Python
1
star
52

isotoma.recipe.varnish

isotoma.recipe.varnish
Python
1
star
53

isotoma.recipe.zeo

Our fork of plone.recipe.zeoserver
Python
1
star
54

isotoma.recipe.cluster

isotoma.recipe.cluster
Python
1
star
55

isotoma.recipe.jython

Buildout recipe to deploy jython, forked from sk.recipe.jython
Python
1
star
56

isotoma.recipe.trac

isotoma.recipe.trac
Python
1
star
57

isotoma.recipe.ldap

A recipe for running non-system LDAP instances
Python
1
star
58

isotoma.buildbot.sauceconnect

Buildbot steps for integration with saucelabs
Python
1
star
59

isotoma.buildout.logger

isotoma.buildout.logger
Python
1
star
60

isotoma.zope.aqheaders

Adds HTTP headers about Acquisition to responses from Zope.
Python
1
star
61

drain-machine

Drain kubernetes nodes when they need draining
Python
1
star
62

isotoma.egglayer

Dynamic, on the fly, policy egg generation
Python
1
star
63

jungle

Maintain a symlink farm for fast software rollbacks
Python
1
star
64

isotoma.recipe.fms

isotoma.recipe.fms
Python
1
star
65

django-stackhelper

Generate configuration files for other parts of your Django stack
Python
1
star
66

mutable-tag-ecs-updater-cdk

Updates those mutable tags
TypeScript
1
star
67

isotoma.recipe.zope2install

A fork of plone.recipe.zope2install that uses zc.buildout.download.Download
Python
1
star
68

trac-CSVMacro

Trac Macro for reading CSV files and displaying the results as a table on the wiki page
Python
1
star
69

trac-DefaultCcPlugin

Trac plugin that allows default ccs to be added to all ticket fields
Python
1
star
70

isotoma.buildout.dumppickedversions

Fork of buildout.dumppickedversions
1
star
71

isotoma.zope.groupreadableblobstorage

Patches Zope to allow BlobStorage to be group readable
Python
1
star
72

isotoma.recipe.buildbot

isotoma.recipe.buildbot
Python
1
star
73

isotoma.plone.defang

Make changes to ZODB data when moving environments
Python
1
star
74

waf-automations-cdk

WAF Automations for CDK
TypeScript
1
star
75

vagrant-yaybu

Teach Vagrant how to build stuff with Yaybu
Ruby
1
star
76

isotoma.recipe.portmap

isotoma.recipe.portmap
Python
1
star
77

isotoma.recipe.distros

Python
1
star
78

isotoma.recipe.zope2instance

isotoma.recipe.zope2instance
Python
1
star