
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
cern-get-sso-cookie
Advanced tools
You give me a certificate, I give you a cookie you can use to query CERN services using SSO
You give me a certificate, I give you a cookie you can use to query CERN services using SSO
Inspired in Python's implementation and Perl's implementation.
$ npm install cern-get-sso-cookie
Certificates must be passwordless
const axios = require('axios'); // Or whichever http agent you prefer
const getCookie = require('cern-get-sso-cookie');
const url_under_sso =
'https://cmsoms.cern.ch/agg/api/v1/runs?sort=-run_number&page%5Blimit%5D=50&include=meta'; // Or any other API under SSO
const path_to_certificate = './path_to_usercert.pem';
const path_to_key = './path_to_userkey.pem';
// Get the cookie:
const cookie = getCookie({
url: url_under_sso,
certificate: path_to_certificate,
key: path_to_key
});
const { data } = axios.get(url_under_sso, {
headers: {
Cookie: cookie
}
});
$ npm run test
MIT © Fabio Espinosa
FAQs
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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.