Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@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 2 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.