
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@ping-identity/p14c-js-sdk-jwt
Advanced tools
This module allows you to decode and verify JSON Web Token.
It validates if the JWT:
THIS REPOSITORY IS IN A TESTING MODE AND IS NOT READY FOR PRODUCTION !!!
To install @ping-identity/p14c-js-sdk-jwt you can run these commands in your project root folder:
# yarn
yarn install @ping-identity/p14c-js-sdk-jwt
or
# npm
npm install --save @ping-identity/p14c-js-sdk-jwt
Create JwtVerifier
like:
const JwtVerifier = require("@ping-identity/p14c-js-sdk-jwt");
const jwtVerifier = new JwtVerifier(jwksUri);
jwtVerifier.validateToken("idTokenContent", "expectedAudience", "expectedIssuer", "expectedNonce")
where configuration parameter is:
jwksUri
: Required. JSON Web Key Set of keys which contains the public keys used to verify any JWT issued by authorization server and signed by RS256 signing algorithm.Method | Description |
---|---|
validateToken (idToken, expectedAudience, expectedIssuer, expectedNonce) | Verify ID token validity. |
decodeToken (idToken) | Decode ID Token string into the individual JWS parts: header, payload and signature |
jwkGetKey(jwkIn, kty, use, kid) | Retrieve the JWK key that matches the input criteria |
getIdTokenPayload (idToken) | Get the claim set of a JWT without performing validation of the signature or any of the registered claims |
FAQs
Validate access tokens
We found that @ping-identity/p14c-js-sdk-jwt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.