Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@meveo-org/mv-keycloak

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@meveo-org/mv-keycloak

MvKeycloak is a Meveo component (based on lit-element) that allows meveo page components to be secured by [Keycloak](https://www.keycloak.org/).

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
2
Created
Source

mv-keycloak

MvKeycloak is a Meveo component (based on lit-element) that allows meveo page components to be secured by Keycloak.

Features

  • Written in vanilla javascript
  • Simplifies keycloak integration with page components

Quick Start

To use MvKeycloak component:

  • Clone this repo.

  • Run keycloak standalone or via docker using the included docker-compose.yml file.

  • Serve the project from the root directory with some http server (best served with meveo itself)

  • Download the Keycloak OIDC JSON configuration file as described here https://www.keycloak.org/docs/latest/authorization_services/#obtaining-the-adapter-configuration

  • Copy the keycloak.json file obtained from step 3 into the project directory.

  • Import mv-keycloak into the page and wrap the page component with the mv-keycloak tag. e.g.

    <mv-keycloak
      settings-path="./keycloak.json"
      @auth-success="${this.handleLogin}"
      @auth-fail="${this.handleLoginFail}"
      @auth-init-fail="${this.handleLoginFail}"
    >
      <h1>This is a secure page</h1>
      <button @click="${this.handleLogout}">Logout</button>
      <div slot="loading">This message is shown while loading...</div>
      <div slot="authenticating">
        This message is shown while authenticating...
      </div>
      <div slot="failed">This message is shown when authentication fails</div>
    </mv-keycloak>
    

Acknowledgements

FAQs

Package last updated on 13 Sep 2022

Did you know?

Socket

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.

Install

Related posts