Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fpad-signatures

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fpad-signatures

Generate and verify Json Web Tokens within food safety audits.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

fpad-signatures

Create and verify RS256 based JWT oauth-jwt-bearer client authentications.

Installation

npm install fpad-signatures

Require Usage

var fsig = require('fpad-signatures');

API

generate(audit, key, headers)

Generate a signed audit with the given headers and the client's private key. The generate function appends a Json Web Token (JWT) to the audit's signatures.

Parameters

audit {Object} A food safety audit per the Framework for Produce Audit Data (FPAD).

key {PEM JWK} The key used to sign the audit. Supported key types include those supported by kjur/jsrsasign's KJUR.KEYUTIL.getKey function. If the JWK has a kid property it will be included in the client assertion header.

headers {Object} The headers parameter is passed directly to kjur/jsrsasign. This module will not allow the caller to override the properties required by the [jwt-bearer][jwt-bearer] RFC. You can add properties to the header and claim set with the following sub-objects:

Keywords

FAQs

Package last updated on 13 Oct 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc