Olympusat React Gate
Last updated 2 years ago by olympusat .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-oly-gate 
SYNC missed versions from official npm registry.



To add the Authentication gate and the Centralizer to your project:

  1. Include the oly-sdk & react-oly-gate package
  2. Import the Gate & instantiate it with your branding info and credentials
npm i -S oly-sdk react-oly-gate
  import {Oly} from '@olympusat/oly-sdk';
  import {Gate} from '@olympusat/react-oly-gate';

  import getOlySdkOptions from "./olySdkOptions";
  import getOlyGateOptions from "./olyGateOptions";

  new Oly(getOlySdkOptions());
  new Gate(getOlyGateOptions());


If a referrer is set in localstorage, then the sdk will redirect to that url on login.localStorage.setItem('olyauth.referrer',window.location.href);


This is the Id of your User Pool


The Id of the User Pool in Cognito that you'd like to use


The Id of the Federated Identities Pool set up in Cognito. The APP_CLIENT_ID & USER_POOL_ID of your User Pool should be added as Cognito Authentication Providers in the Federated IDentity Pool settings.

##ENDPOINT_USERS The GraphQL endpoint for your users service.


The GraphQL endpoint for your apps service.



The application must have a route named "auth" that will be used as our callback and a safe route to host the Gate component


Notes: The auth services works through the Users api. There are public methods in the auth service that the user service triggers on load to reveal the auth gate.

utils.OlyAuthMeta is where you theme the auth gate from.


If you run into issues, first check that these packages are exactly these versions. AWS changed their sdk at some point after, introducing breaking changes


Current Tags

  • 3.5.6                                ...           latest (2 years ago)

11 Versions

  • 3.5.6                                ...           2 years ago
  • 3.5.5                                ...           2 years ago
  • 3.5.4                                ...           2 years ago
  • 3.5.3                                ...           2 years ago
  • 3.5.2                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (16)
Dev Dependencies (13)
Dependents (0)

Copyright 2014 - 2016 © |