Options
All
  • Public
  • Public/Protected
  • All
Menu

Creates an OIDC Provider based on the provided configuration and parameters. The provider will be cached and returned on subsequent calls. Cookie and JWT keys will be stored in an internal storage so they can be re-used over multiple threads. Necessary claims for Solid OIDC interactions will be added. Routes will be updated based on the baseUrl and idpPath.

Hierarchy

  • IdentityProviderFactory

Implements

Index

Constructors

constructor

Properties

Private Readonly adapterFactory

adapterFactory: AdapterFactory

Private Readonly baseUrl

baseUrl: string

Private Readonly config

config: Configuration

Private Readonly errorHandler

errorHandler: ErrorHandler

Private Readonly idpPath

idpPath: string

Private Optional provider

provider?: Provider

Private Readonly responseWriter

responseWriter: ResponseWriter

Private Readonly storage

storage: KeyValueStorage<string, unknown>

Methods

Private configureClaims

  • configureClaims(config: Configuration): void

Private configureErrors

  • configureErrors(config: Configuration): void

Private configureRoutes

  • configureRoutes(config: Configuration): void

Private createProvider

  • createProvider(): Promise<Provider>

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[] }>

getProvider

  • getProvider(): Promise<Provider>

Private initConfig

  • initConfig(): Promise<Configuration>

Private isAccessToken

  • isAccessToken(token: any): token is undefined | AccessToken