🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

brightspace-auth-keys-dynamodb-store

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
n

brightspace-auth-keys-dynamodb-store

DynamoDB based public key store implementation for brightspace-auth-keys

9.0.1
latest
Version published
Weekly downloads
21
425%
Maintainers
1
Weekly downloads
 
Created
Issues
4

brightspace-auth-keys-dynamodb-store

DynamoDB based public key store implementation for brightspace-auth-keys.

Install

npm install brightspace-auth-keys brightspace-auth-keys-dynamodb-store --save

Usage

const KeyGenerator = require('brightspace-auth-keys').KeyGenerator;
const AWS = require('aws-sdk');
const DynamoDbPublicKeyStore = require('brightspace-auth-keys-dynamodb-store');
const db = new AWS.DynamoDB();
const tableName = 'auth_public_keys';


module.exports = new KeyGenerator({
	publicKeyStore: new DynamoDbPublicKeyStore(
		db,
		tableName
	),
	// see brightspace-auth-keys for the full set of options
});

Setup

For convenience the DynamoDB table can automatically be created in code, doing nothing if the table already exists so that it can be added to initialization code. It will be created with the TTL for the rows set on the ExpiresAt column.

const AWS = require('aws-sdk');
const DynamoDbPublicKeyStore = require('brightspace-auth-keys-dynamodb-store');
const db = new AWS.DynamoDB();
const tableName = 'auth_public_keys';
const readCapacity = 20; /* optional, default 5 */
const writeCapacity = 10; /* optional, default 5 */

DynamoDbPublicKeyStore.createTable(db, tableName, readCapacity, writeCapacity);

FAQs

Package last updated on 07 May 2025

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