New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cumulus/launchpad-auth

Package Overview
Dependencies
Maintainers
12
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cumulus/launchpad-auth

Utilities for authentication with Launchpad

  • 9.7.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
102
decreased by-75.6%
Maintainers
12
Weekly downloads
 
Created
Source

@cumulus/launchpad-auth

Utilities for authentication by Cumulus using Launchpad.

Usage

  npm install @cumulus/launchpad-auth

API

Modules

launchpad-auth

Utility functions for generating and validating Launchpad tokens

Classes

LaunchpadToken

A class for sending requests to Launchpad token service endpoints

launchpad-auth

Utility functions for generating and validating Launchpad tokens

getLaunchpadToken(params) ⇒ Promise.<string>

Get a Launchpad token

Kind: Exported function
Returns: Promise.<string> - - the Launchpad token

ParamTypeDescription
paramsObjectthe configuration parameters for creating LaunchpadToken object
params.apistringthe Launchpad token service api endpoint
params.passphrasestringthe passphrase of the Launchpad PKI certificate
params.certificatestringthe name of the Launchpad PKI pfx certificate

validateLaunchpadToken(params, token, [userGroup]) ⇒ Promise.<ValidateTokenResult>

Validate a Launchpad token

Kind: Exported function
Returns: Promise.<ValidateTokenResult> - - the validate result object with { status: 'success or failed', message: 'reason for failure', session_maxtimeout: number second, session_starttime: number millisecond, owner_auid: string}

ParamTypeDescription
paramsObjectthe configuration parameters for creating LaunchpadToken object
params.apistringthe Launchpad token service api endpoint
params.passphrasestringthe passphrase of the Launchpad PKI certificate
params.certificatestringthe name of the Launchpad PKI pfx certificate
tokenstringthe token to be validated
[userGroup]stringthe cumulus user group that a valid user should belong to

LaunchpadToken

A class for sending requests to Launchpad token service endpoints

Kind: global class

new LaunchpadToken(params)
ParamTypeDescription
paramsObject
params.apistringthe Launchpad token service api endpoint
params.passphrasestringthe passphrase of the Launchpad PKI certificate
params.certificatestringthe name of the Launchpad PKI pfx certificate

Example

const LaunchpadToken = require('@cumulus/launchpad-auth/LaunchpadToken');

const launchpadToken = new LaunchpadToken({
 api: 'launchpad-token-api-endpoint',
 passphrase: 'my-pki-passphrase',
 certificate: 'my-pki-certificate.pfx'
});

launchpadToken.requestToken() ⇒ Promise.<Object>

Get a token from Launchpad

Kind: instance method of LaunchpadToken
Returns: Promise.<Object> - - the Launchpad gettoken response object

launchpadToken.validateToken(token) ⇒ Promise.<Object>

Validate a Launchpad token

Kind: instance method of LaunchpadToken
Returns: Promise.<Object> - - the Launchpad validate token response object

ParamTypeDescription
tokenstringthe Launchpad token for validation

About Cumulus

Cumulus is a cloud-based data ingest, archive, distribution and management prototype for NASA's future Earth science data streams.

Cumulus Documentation

Contributing

To make a contribution, please see our contributing guidelines.


Generated automatically using npm run build-docs

Keywords

FAQs

Package last updated on 01 Oct 2021

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