Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@openpass/openpass-js-sdk
Advanced tools
The OpenPass JavaScript SDK makes it easy to integrate OpenPass directly on your website.
To get started using the OpenPass JavaScript Sdk, see the JavaScript SDK Guide.
This project uses the Pact Contract Testing library to ensure compatibility with the OpenPass API. See https://docs.pact.io/ for more details.
The Pact Broker has been deployed to allow communication between the SDK and API and also to provide a web UI for viewing the contracts published so far as well as the verification results. The following two URLs are available:
Credentials are also required - currently we only have a single user with username / password credentials. These can be found in 1Password under Engineering with item name "OpenPass Pact Broker - Write User".
Contracts are published for each release of the SDK - this is managed automatically through GitHub Actions. The API is then tested against the contracts for each release - should you require testing against a release to stop due to the release no longer being supported, use the following command while connected to a Trade Desk VPN (replacing 1.0.0 with the appropriate version; you will also need to set PACT_BROKER_USERNAME and PACT_BROKER_PASSWORD):
$ npx pact-broker record-support-ended --pacticipant openpass-js-sdk --version 1.0.0 --environment production --broker-base-url=https://pact.internal.myopenpass.com -u=$PACT_BROKER_USERNAME -p=$PACT_BROKER_PASSWORD"
Note that MatchersV3 is imported from ./utils rather than from the Pact library as it provides a safe wrapper over the regex Matcher (with the possibility to also modify other matchers).
It is important to avoid random data in Pact contract tests, as well as other data that changes with each contract (such as SDK version numbers). This is because Pact can figure out when two SDK versions have identical contracts, allowing testing to only be done once - but using random data will result in the contracts for each SDK version being different, resulting in testing taking much longer than necessary.
FAQs
OpenPass SSO JavaScript SDK
The npm package @openpass/openpass-js-sdk receives a total of 156 weekly downloads. As such, @openpass/openpass-js-sdk popularity was classified as not popular.
We found that @openpass/openpass-js-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.