New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-oly-gate

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-oly-gate

Olympusat React Gate

latest
Source
npmnpm
Version
3.5.6
Version published
Weekly downloads
14
55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Npm: https://www.npmjs.com/package/react-oly-gate

Usage

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

  • Include the oly-sdk & react-oly-gate package
  • 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());

Referrer

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

APP_CLIENT_ID

This is the Id of your User Pool

USER_POOL_ID

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

IDENTITY_POOL_ID

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.

ENDPOINT_APPS

The GraphQL endpoint for your apps service.

Resources

Requirements

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

Features

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.

Gotchas

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

"aws-sdk":"2.7.9",
"amazon-cognito-identity-js":"1.8.0"

FAQs

Package last updated on 10 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts