Skip to main content

InMemoryOAuthClientStore

@quik/oauth-server


@quik/oauth-server / InMemoryOAuthClientStore

Class: InMemoryOAuthClientStore

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:10

In-memory store for OAuth client registrations.

Extends​

  • QObject

Implements​

Constructors​

Constructor​

new InMemoryOAuthClientStore(): InMemoryOAuthClientStore

Returns​

InMemoryOAuthClientStore

Inherited from​

QObject.constructor

Properties​

clients​

protected readonly clients: Map<string, QOAuthClient>

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:11

Accessors​

logger​

Get Signature​

get protected logger(): IQLogger

Defined in: core/src/QObject.ts:15

The logger getter for the object.

Returns​

IQLogger

Inherited from​

QObject.logger


name​

Get Signature​

get name(): string

Defined in: core/src/QObject.ts:8

Returns​

string

Inherited from​

QObject.name

Methods​

all()​

all(): QOAuthClient[]

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:24

Returns all registered clients.

Returns​

QOAuthClient[]

Implementation of​

IQOAuthClientStore.all


clear()​

clear(): void

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:32

Clears all clients.

Returns​

void

Implementation of​

IQOAuthClientStore.clear


endSpan()​

protected endSpan(span): void

Defined in: core/src/QObject.ts:35

End a span returned by startSpan.

Parameters​

span​

TelemetrySpan

The span to end.

Returns​

void

Inherited from​

QObject.endSpan


get()​

get(clientId): QOAuthClient

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:19

Returns one client by id.

Parameters​

clientId​

string

Returns​

QOAuthClient

Implementation of​

IQOAuthClientStore.get


recordSpanError()​

protected recordSpanError(span, err): void

Defined in: core/src/QObject.ts:45

Record an exception on an active span.

Parameters​

span​

TelemetrySpan

The span to record the error on.

err​

unknown

The error to record.

Returns​

void

Inherited from​

QObject.recordSpanError


remove()​

remove(clientId): void

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:28

Removes one client by id.

Parameters​

clientId​

string

Returns​

void

Implementation of​

IQOAuthClientStore.remove


save()​

save(client): QOAuthClient

Defined in: oauth-server/src/store/InMemoryOAuthClientStore.ts:13

Creates or updates one client definition.

Parameters​

client​

QOAuthClient

Returns​

QOAuthClient

Implementation of​

IQOAuthClientStore.save


setSpanAttribute()​

protected setSpanAttribute(span, key, value): void

Defined in: core/src/QObject.ts:64

Set a single attribute on an active span.

Parameters​

span​

TelemetrySpan

The span to update.

key​

string

Attribute key.

value​

string | number | boolean

Attribute value.

Returns​

void

Inherited from​

QObject.setSpanAttribute


startSpan()​

protected startSpan(spanName, options?): TelemetrySpan

Defined in: core/src/QObject.ts:26

Start a telemetry span for the given operation name. Returns undefined when no telemetry provider is active.

Parameters​

spanName​

string

Name of the span.

options?​

TelemetrySpanOptions

Optional span attributes and kind.

Returns​

TelemetrySpan

Inherited from​

QObject.startSpan