contentbox.models.security

Class LoginTracker

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by coldbox.system.Interceptor
        extended by contentbox.models.security.LoginTracker

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- Listens to login attempts to keep track of them via the Login Tracker System

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any cb


    • access = public
    • returntype = any
    • inject = cbhelper@cb
    true false
    any loginTrackerService


    • access = public
    • returntype = any
    • inject = id:loginTrackerService@cb
    true false
    any messagebox


    • access = public
    • returntype = any
    • inject = messagebox@cbMessagebox
    true false
    any securityService


    • access = public
    • returntype = any
    • inject = id:securityService@cb
    true false
    any settingService


    • access = public
    • returntype = any
    • inject = id:settingService@cb
    true false
    any systemUtil


    • access = public
    • returntype = any
    • inject = SystemUtil@cb
    true false
    Method Summary
    void cbadmin_onBadLogin([any event], [any interceptData], [any buffer])
         If logins fails, add entry to database with username and IP,.
    any cbadmin_onLogin([any event], [any interceptData], [any buffer])
         Listen to successful logins.
    any cbadmin_preLogin([any event], [any interceptData], [any buffer])
         Before login check if user has been blocked.
    any configure()
         Configure interceptor.
    any postProcess([any event], [any interceptData])
         Listen to end of requests to do log rotation for auth logs for login events only.
     
    Methods inherited from class coldbox.system.Interceptor
    appendToBuffer, clearBuffer, getBufferObject, getBufferString, getCachebox, getFlash, getInterceptorService, getLog, getLogBox, getProperties, getProperty, getWirebox, init, propertyExists, setCachebox, setFlash, setInterceptorService, setLog, setLogBox, setProperties, setProperty, setWirebox, unregister
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getDatasource, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getRequestCollection, getRequestContext, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class lucee.Component
    None

    Property Detail

    cb

    property any cb

    Attributes:
    access - public
    required - false
    returntype - any
    inject - cbhelper@cb
    serializable - true

    loginTrackerService

    property any loginTrackerService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - id:loginTrackerService@cb
    serializable - true

    messagebox

    property any messagebox

    Attributes:
    access - public
    required - false
    returntype - any
    inject - messagebox@cbMessagebox
    serializable - true

    securityService

    property any securityService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - id:securityService@cb
    serializable - true

    settingService

    property any settingService

    Attributes:
    access - public
    required - false
    returntype - any
    inject - id:settingService@cb
    serializable - true

    systemUtil

    property any systemUtil

    Attributes:
    access - public
    required - false
    returntype - any
    inject - SystemUtil@cb
    serializable - true

    Method Detail

    cbadmin_onBadLogin

    public void cbadmin_onBadLogin([any event], [any interceptData], [any buffer])

    If logins fails, add entry to database with username and IP, so we can verify later if they will be blocked by username or ip misuses the blockByIp and blockByUsername entities are prepared on pre-login

    Parameters:
    event
    interceptData
    buffer

    cbadmin_onLogin

    public any cbadmin_onLogin([any event], [any interceptData], [any buffer])

    Listen to successful logins

    Parameters:
    event
    interceptData
    buffer

    cbadmin_preLogin

    public any cbadmin_preLogin([any event], [any interceptData], [any buffer])

    Before login check if user has been blocked. It will verify login attempts by username and IP address and block accordingly.

    Parameters:
    event
    interceptData
    buffer

    configure

    public any configure()

    Configure interceptor

    Overrides:
    configure in class coldbox.system.Interceptor

    postProcess

    public any postProcess([any event], [any interceptData])

    Listen to end of requests to do log rotation for auth logs for login events only.

    Parameters:
    event
    interceptData