Skip to main content

Class: SecurityPluginOptionsFactoryStatic

Creates a complete security plugin configuration from application options. The factory supplies the SecurityPlugin class and defaults the authenticator strategy to all; explicitly providing authenticator replaces that default configuration.

Implements​

Constructors​

Constructor​

new SecurityPluginOptionsFactoryStatic(): SecurityPluginOptionsFactoryStatic

Returns​

SecurityPluginOptionsFactoryStatic

Methods​

create()​

create(options): SecurityPluginOptions

Parameters​

options​

Omit<SecurityPluginOptions, "plugin">

Plugin configuration excluding the plugin class itself.

Returns​

SecurityPluginOptions

Options ready to pass to app.use().

Implementation of​

Factory.create