1.1.1 • Published 2 years ago

keycloak-auth v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

keycloak-auth

Beautifull and fast module for authenticate with OAuth2 use Keycloak.

import {Keycloak} from 'keycloak-auth'

Keycloak.init({
    "realm": "myrealm",
    "auth-server-url": "https://your-keycloak-domain.com/",
    "ssl-required": "external",
    "resource": "myclient",
    "public-client": true,
    "confidential-port": 0
}, "https://your-redirect.com/api/auth")

Keycloak.auth().createLoginString()

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

If this is a brand new project, make sure to create a package.json first with the npm init command.

Installation is done using the npm install command:

$ npm install keycloak-auth`

Example

https://github.com/stefanopascazi/keycloak-auth/tree/main/example

1.1.1

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago