Skip to main content

Class: KeycloakConnectorClient

Constructors

constructor

new KeycloakConnectorClient(config): KeycloakConnectorClient

Parameters

NameType
configClientConfig

Returns

KeycloakConnectorClient

Defined in

keycloak-connector-client.ts:56

Methods

abortBackgroundLogins

abortBackgroundLogins(): void

Returns

void

Defined in

keycloak-connector-client.ts:287


addEventListener

addEventListener(...args): void

Parameters

NameType
...args[event: ClientEvent | "*", listener: EventListenerFunction<ClientEvent>]

Returns

void

Defined in

keycloak-connector-client.ts:115


authCheck

authCheck(force?): Promise<void>

Parameters

NameType
force?boolean

Returns

Promise<void>

Defined in

keycloak-connector-client.ts:392


authCheckNoWait

authCheckNoWait(): boolean

Returns

boolean

Defined in

keycloak-connector-client.ts:306


destroy

destroy(): void

Returns

void

Defined in

keycloak-connector-client.ts:293


handleLogin

handleLogin(newWindow?): Promise<void>

Parameters

NameType
newWindow?boolean

Returns

Promise<void>

Defined in

keycloak-connector-client.ts:527


handleLogout

handleLogout(args?): Promise<void>

Parameters

NameType
argsObject
args.redirectUri?string

Returns

Promise<void>

Defined in

keycloak-connector-client.ts:563


isStarted

isStarted(): boolean

Returns

boolean

Defined in

keycloak-connector-client.ts:113


prepareToHandleNewWindowLogin

prepareToHandleNewWindowLogin(): void

Prepares the client to smoothly handle logins through a new window

Returns

void

Defined in

keycloak-connector-client.ts:525


removeEventListener

removeEventListener(...args): void

Parameters

NameType
...args[event: ClientEvent | "*", listener: EventListenerFunction<ClientEvent>]

Returns

void

Defined in

keycloak-connector-client.ts:116


start

start(): void

Returns

void

Defined in

keycloak-connector-client.ts:100


instance

instance(config): KeycloakConnectorClient

Parameters

NameType
configClientConfig

Returns

KeycloakConnectorClient

Defined in

keycloak-connector-client.ts:646


isTokenCurrent

isTokenCurrent(type): undefined | boolean

Parameters

NameType
typeTokenType

Returns

undefined | boolean

Defined in

keycloak-connector-client.ts:619