Newton's Programmatic Measurements

    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
      });

    Install

    npm i auth0-extension-s3-tools

    DownloadsWeekly Downloads

    7

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • willvedd
    • david.renaud.okta
    • jeff.shuman
    • cristian.j.gonzalez
    • auth0-oss
    • codepete
    • texeira
    • ziluvatar
    • iaco
    • cocojoe
    • fyockm
    • auth0npm
    • auth0alec
    • auth0brokkr
    • hzalaz
    • glena
    • aaguiarz
    • charlesrea
    • lbalmaceda
    • jstrutz
    • julien.wollscheid
    • cristiandouce
    • heyitsry
    • sambego
    • stevehobbsdev
    • davidmoses
    • sandrinodimattia
    • lzychowski
    • joshcanhelp
    • rob.coles
    • faroceann
    • rosnovsky
    • davidpatrick0
    • widcket
    • adamjmcgrath
    • ldoorz
    • th3maio
    • jim.andersoon
    • fadymak
    • navrupt
    • frederikprijck
    • sergii.biienko
    • tomauth0
    • jakewlacey
    • jpadilla
    • jessele
    • shushen
    • rhamzeh_auth0
    • greglopez