domino-keycloak

A simple JsInterop wrapper for keycloak JS adapter

License

License

Categories

Categories

KeY Data Data Formats Formal Verification Keycloak Security
GroupId

GroupId

org.dominokit
ArtifactId

ArtifactId

domino-keycloak
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

gwt-lib
Description

Description

domino-keycloak
A simple JsInterop wrapper for keycloak JS adapter
Project Organization

Project Organization

Dominokit
Source Code Management

Source Code Management

https://github.com/DominoKit/domino-keycloak

Download domino-keycloak

Dependencies

compile (2)

Group / Artifact Type Version
com.google.elemental2 : elemental2-core jar 1.1.0
com.google.elemental2 : elemental2-dom jar 1.1.0

test (2)

Group / Artifact Type Version
junit : junit jar 4.13.1
org.assertj : assertj-core jar 3.18.1

Project Modules

There are no modules declared in this project.

domino-keycloak

JsInterop wrapper for keycloak

Maven dependency

<dependency>
    <groupId>org.dominokit</groupId>
    <artifactId>domino-keycloak</artifactId>
    <version>1.0.0</version>
</dependency>

GWT inherits

<inherits name="org.dominokit.keycloak"/>

Usage

  • Make sure the keycloak.js adapter is loaded in your html page.

  • Create a new keycloak instance

KEYCLOAK = Keycloak.create([url to load the keycloak config json file or a json string]);
  • Use the new created instance
keycloakInstance().onReady = (authenticated -> {
    if (authenticated) {
        // Authenticated user
    } else {
        KEYCLOAK.login(LoginOptions.create());
    }
});
org.dominokit

DominoKit

Service Providers, UI library, Modular framework and GWT experts.

Versions

Version
1.0.0