auth0-extension-s3-tools

1.1.1 • Public • Published

Auth0 Extension Tools for Amazon S3

A set of tools and utilities to simplify the development of Auth0 Extensions with Amazon S3. This can be used in combination with a BlobRecordProvider.

Usage

const tools = require('auth0-extension-s3-tools');

Read from S3.

Read a file from Amazon S3:

const ctx = new tools.S3StorageContext({
  path: '/foo.json',
  bucket: 'myBucket',
  keyId: 'myKey',
  keySecret: 'mySecret',
  defaultData: { foo: 'bar' }
});
ctx.read()
  .then(function(data) {
    // Use data
  });

Write to S3.

Write a file to Amazon S3:

const ctx = new tools.S3StorageContext({
  path: '/foo.json',
  bucket: 'myBucket',
  keyId: 'myKey',
  keySecret: 'mySecret',
  defaultData: { foo: 'bar' }
});
ctx.write({ foo: 'other-bar' })
  .then(function() {
    // Success
  });

Package Sidebar

Install

npm i auth0-extension-s3-tools

Weekly Downloads

2

Version

1.1.1

License

MIT

Last publish

Collaborators

  • jfromaniello
  • edgarchirivella-okta
  • sanjay.manikandhan
  • ncluer
  • vic-dev
  • enriquepina
  • ece-okta
  • pubalokta
  • dougmiller-okta
  • zak.nour
  • stheller
  • jamescgarrett-okta
  • madhuri.rm23
  • willvedd
  • david.renaud.okta
  • jeff.shuman
  • auth0-oss
  • codepete
  • ziluvatar
  • iaco
  • cocojoe
  • auth0npm
  • auth0brokkr
  • hzalaz
  • aaguiarz
  • charlesrea
  • lbalmaceda
  • julien.wollscheid
  • cristiandouce
  • sambego
  • stevehobbsdev
  • sandrinodimattia
  • lzychowski
  • joshcanhelp
  • davidpatrick0
  • widcket
  • adamjmcgrath
  • jim.andersoon
  • frederikprijck
  • sergii.biienko
  • tomauth0
  • jpadilla
  • jessele
  • rhamzeh_auth0