import AuthenticationPluginPassport from 'devapt-core-server/js/security/todo/authentication_plugin_passport.js'
AuthenticationPluginPassport
Extends:
Direct Subclass:
Indirect Subclass:
Authentication base class for Passport strategies.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_name: string, arg_class: string, arg_log_context: string | undefined): nothing Create an Authentication class for all Passport strategies. |
Member Summary
Public Members | ||
public |
|
|
public |
id_fieldname: * |
|
public |
|
|
public |
passport: * |
|
public |
|
|
public |
strategies: {} |
|
public |
strategies_names: *[] |
|
public |
|
|
public |
use_session: * |
|
public |
|
Method Summary
Public Methods | ||
public |
|
|
public abstract |
add_strategy(arg_name: *, arg_instance: *): object Get Passport strategy provided by this class. |
|
public |
apply_on_server(arg_server: object): nothing Apply authentication plugin io given server. |
|
public |
Get a authentication middleware to use on servers (see Connect/Express middleware signature). |
|
public |
Get a authentication route middleware to use on servers (see Connect/Express middleware signature). |
|
public |
Disable authentication plugin with contextual informations. |
|
public |
Enable authentication plugin with contextual informations. |
Public Constructors
Public Members
public failure_redirect: * source
public id_fieldname: * source
public passport: * source
public password_fieldname: * source
public strategies: {} source
public strategies_names: *[] source
public success_redirect: * source
public use_session: * source
public username_fieldname: * source
Public Methods
public add_local_strategy() source
public abstract add_strategy(arg_name: *, arg_instance: *): object source
Get Passport strategy provided by this class.
Params:
Name | Type | Attribute | Description |
arg_name | * | ||
arg_instance | * |
public apply_on_server(arg_server: object): nothing source
Apply authentication plugin io given server. Use a middleware.
Params:
Name | Type | Attribute | Description |
arg_server | object | Runtime server (Express/Restify server for example) |
Return:
nothing |
public create_middleware(): function source
Get a authentication middleware to use on servers (see Connect/Express middleware signature).
public create_route_middleware(): function source
Get a authentication route middleware to use on servers (see Connect/Express middleware signature).
public disable(arg_settings: object | undefined): object source
Disable authentication plugin with contextual informations.