Options
All
  • Public
  • Public/Protected
  • All
Menu

This {@link Adapter} redirects the find call to its source adapter. In case no client data was found in the source for the given WebId, this class will do an HTTP GET request to that WebId. If a valid solid:oidcRegistration triple is found there, that data will be returned instead.

Hierarchy

  • WrappedFetchAdapter

Implements

  • Adapter

Index

Constructors

constructor

Properties

Protected Readonly logger

logger: Logger = ...

Private Readonly name

name: string

Private Readonly source

source: Adapter

Methods

consume

  • consume(id: string): Promise<void>

destroy

  • destroy(id: string): Promise<void>

find

  • find(id: string): Promise<void | AdapterPayload>

findByUid

  • findByUid(uid: string): Promise<void | AdapterPayload>

findByUserCode

  • findByUserCode(userCode: string): Promise<void | AdapterPayload>

revokeByGrantId

  • revokeByGrantId(grantId: string): Promise<void>

upsert

  • upsert(id: string, payload: AdapterPayload, expiresIn: number): Promise<void>

Private validateRegistrationQuad

  • validateRegistrationQuad(quad: Quad, id: string): AdapterPayload
  • Validates if the quad object contains valid JSON with the required client_id. In case of success, the AdapterPayload will be returned, otherwise an error will be thrown.

    Parameters

    • quad: Quad
    • id: string

    Returns AdapterPayload