Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@highpoint/get-ps-token
Advanced tools
Populates a cookie jar with PS_TOKEN.
yarn add -D @highpoint/get-ps-token
To populate a cookie jar with
a valid PS_TOKEN, call getToken
with an object that includes the following:
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();
Key | Required | Example |
---|---|---|
PS_HOSTNAME | True | example.com |
PS_ENVIRONMENT | True | csdev92 |
PS_USERNAME | True | user |
PS_PASSWORD | True | password |
HTTP_USERNAME | False | user |
HTTP_PASSWORD | False | password |
Example:
const jar = await getToken({
PS_HOSTNAME: 'example.com',
PS_ENVIRONMENT: 'csdev92',
PS_USERNAME: 'user',
PS_PASSWORD: 'password1'
});
FAQs
Populate cookie jar with PeopleSoft token
The npm package @highpoint/get-ps-token receives a total of 0 weekly downloads. As such, @highpoint/get-ps-token popularity was classified as not popular.
We found that @highpoint/get-ps-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.