Options
All
  • Public
  • Public/Protected
  • All
Menu

An IDP Configuration Factory that generates and saves keys to the provided key value store.

Hierarchy

  • KeyConfigurationFactory

Implements

Index

Constructors

constructor

Properties

Private Readonly adapterFactory

adapterFactory: AdapterFactory

Private Readonly baseUrl

baseUrl: string

Private Readonly idpPath

idpPath: string

Private Readonly storage

storage: KeyValueStorage<string, unknown>

Accessors

Private cookieSecretKey

  • get cookieSecretKey(): string

Private jwksKey

  • get jwksKey(): string

Methods

createConfiguration

  • createConfiguration(): Promise<Configuration>

Private createRoute

  • createRoute(relative: string): string
  • Creates the route string as required by the oidc-provider library. In case base URL is http://test.com/foo/, idpPath is /idp and relative is device/auth, this would result in /foo/idp/device/auth.

    Parameters

    • relative: string

    Returns string

Private generateCookieKeys

  • generateCookieKeys(): Promise<string[]>

Private generateJwks

  • generateJwks(): Promise<{ keys: JWK[] }>