
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.
@chapeaux/cpx-state
Advanced tools
= Chapeaux User Component
== Events
user-ready
- fires when the .user
object data is populateduser-update
- fires when the .user
object is updated== Usage
User data is always stored on the .user
property once it is
available.
=== Server-side or on-page
=== JSON Web Token
Requires that jwt_decode
library be available globally.
Available component properties:
jwt-cookie
: sets the cookie to parse for JWT datajwt-token
: sets the JWT token to parse for data=== Keycloak
Requires keycloak.js
to be available, and the following attributes to
be set with the appropriate values:
kc-url
- the Keycloak server urlkc-realm
- the Keycloak realmkc-client-id
- the Keycloak client IDAvailable component methods:
login()
: log in using the Keycloak configlogout()
: log out using the Keycloak configregister()
: send user to registration screen based on Keycloak configaccount()
: send user to account management screen based on Keycloak configtoken.createLoginUrl()
: creates URL to direct user to login screentoken.createLogoutUrl()
: creates URL to log user outAvailable component properties:
token
: the Keycloak object for authenticated users=== Scripts
FAQs
Chapeaux State Management Component
We found that @chapeaux/cpx-state demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.