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

@highpoint/get-ps-token

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highpoint/get-ps-token

Populate cookie jar with PeopleSoft token

  • 0.2.0-alpha2
  • alpha
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
3
Weekly downloads
 
Created
Source

Get PeopleSoft Token

Populates a cookie jar with PS_TOKEN.

Installation

yarn add -D @highpoint/get-ps-token

Usage

To populate a cookie jar with a valid PS_TOKEN, call getToken with an object that includes the following:

  • PeopleSoft hostname
  • PeopleSoft environment
  • PeopleSoft user name
  • PeopleSoft user password
  • HTTP Auth user name (optional)
  • HTTP Auth user password (optional)

Example

const request = require('request-promise');
const getToken = require('@highpoint/get-ps-token');

require('dotenv').config({ silent: true });

/* 
  Add the following environment variables to a `.env` file in the root of your
  project:
    ISCRIPT_HOSTNAME
    ISCRIPT_ENVIRONMENT
    HTTP_USERNAME
    HTTP_PASSWORD
    PS_USERNAME
    PS_PASSWORD
*/

const makeRequest = async () => {
  request
    .get({
      uri: '...',
      jar: await getToken(process.env)
    })
    .then(response => {
      // ...
    });
};

makeRequest();

API

KeyRequiredExample
PS_HOSTNAMETrueexample.com
PS_ENVIRONMENTTruecsdev92
PS_USERNAMETrueuser
PS_PASSWORDTruepassword
HTTP_USERNAMEFalseuser
HTTP_PASSWORDFalsepassword

Example:

const jar = await getToken({
  PS_HOSTNAME: 'example.com',
  PS_ENVIRONMENT: 'csdev92',
  PS_USERNAME: 'user',
  PS_PASSWORD: 'password1'
});

FAQs

Package last updated on 01 Oct 2020

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