Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@chapeaux/cpx-keycloak
Advanced tools
token-ready
- fires when the .user
object data is populateduser-update
- fires when the .user
object is updatedUser data is always stored on the .user
property once it is available.
```html
<cpx-user>
<script type="data">
{
"name": "Test User",
"email": "test123@test123.com"
}
</script>
</cpx-user>
```
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```html
<cpx-user jwt-cookie="SOME_JWT_COOKIE_NAME"></cpx-user>
```
```html
<cpx-user jwt-token="SOMEJWTENCODEDSTRING"></cpx-user>
```
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 IDlogin()
: 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 outtoken
: the Keycloak object for authenticated users```html
<cpx-user kc-url="https://test123.com/auth" kc-realm="your-realm" kc-client-id="your-client-id"></cpx-user>
```
FAQs
Chapeaux Keycloak Component
We found that @chapeaux/cpx-keycloak 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.