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 oidcPath.

Hierarchy

  • IdentityProviderFactory

Implements

Index

Constructors

Properties

adapterFactory: AdapterFactory
baseUrl: string
config: Configuration
errorHandler: ErrorHandler
interactionHandler: InteractionHandler
jwtAlg: "ES256" = 'ES256'
oidcPath: string
provider?: Provider
responseWriter: ResponseWriter
storage: KeyValueStorage<string, unknown>

Methods

  • configureClaims(config: Configuration): void
  • configureErrors(config: Configuration): void
  • configureRoutes(config: Configuration): void
  • createProvider(): Promise<Provider>
  • createRoute(relative: string): string
  • Creates the route string as required by the oidc-provider library. In case base URL is http://test.com/foo/, oidcPath is /idp and relative is device/auth, this would result in /foo/idp/device/auth.

    Parameters

    • relative: string

    Returns string

  • generateCookieKeys(): Promise<string[]>
  • generateJwks(): Promise<{ keys: JWK[] }>
  • getProvider(): Promise<Provider>
  • initConfig(): Promise<Configuration>
  • isAccessToken(token: any): token is undefined | AccessToken