Class IdentityProviderFactory
Properties
Private Readonly configurationFactory
Private Readonly errorHandler
Private Readonly issuer
issuer: string
Private Readonly responseWriter
Methods
createProvider
- createProvider(interactionPolicyOptions: { policy?: Prompt[]; url?: (ctx: ParameterizedContext<DefaultState, DefaultContext & { oidc: OIDCContext }, unknown>) => CanBePromise<string> }): Promise<Provider>
-
Parameters
-
interactionPolicyOptions: { policy?: Prompt[]; url?: (ctx: ParameterizedContext<DefaultState, DefaultContext & { oidc: OIDCContext }, unknown>) => CanBePromise<string> }
-
Optional policy?: Prompt[]
-
Optional url?: (ctx: ParameterizedContext<DefaultState, DefaultContext & { oidc: OIDCContext }, unknown>) => CanBePromise<string>
-
- (ctx: ParameterizedContext<DefaultState, DefaultContext & { oidc: OIDCContext }, unknown>): CanBePromise<string>
-
Parameters
-
ctx: ParameterizedContext<DefaultState, DefaultContext & { oidc: OIDCContext }, unknown>
Returns CanBePromise<string>
Returns Promise<Provider>
Creates a Provider from the oidc-provider library. This can be used for handling many of the oidc interactions during the IDP process. Full documentation can be found at https://github.com/panva/node-oidc-provider/blob/v6.x/docs/README.md