0.0.3 • Published 3 years ago
keycloak-signup-url v0.0.3
keycloak-signup-url
Create signup url for Keycloak.
Installation
$ npm install keycloak-signup-url --save
Usage
import KeycloakSignupUrl from "keycloak-signup-url";
const config = {
realm: "sample-realm",
url: "http://localhost:8080/auth",
clientId: "sample-client",
redirectUrl: "http://localhost:3000/callbacks/signup"
};
const keycloak = new KeycloakSignupUrl(config);
keycloak.signupUrl();
// http://localhost:8080/auth/realms/sample-realm/protocol/openid-connect/registrations?client_id=sample-client&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fcallbacks%2Fsignup&scope=openid&state=d300138cf4de4f2cb226dbf40b0f5e4e&nonce=cd07e16ef94a41b688dd74cfa90cba22&response_mode=fragment&response_type=id_token%20token
UseCase
TBD