Sha256: bca83ed9ddaef67ac60de362890e5dbad77664706078339c2e24f265083a6522

Contents?: true

Size: 553 Bytes

Versions: 23

Compression:

Stored size: 553 Bytes

Contents

Warden::Manager.after_authentication do |user, auth, opts|
  MnoEnterprise::EventLogger.info('user_login', user.id, "User login", user.email, user) if user
end

Warden::Manager.before_logout do |user, auth, opts|
  # Determine whether it's a sign out or timeout
  if auth.env['PATH_INFO'] =~ %r{^/auth/users/sign_out.json$}
    MnoEnterprise::EventLogger.info('user_logout', user.id, "User logout", user.email, user) if user
  else
    MnoEnterprise::EventLogger.info('user_timeout', user.id, "User session expired", user.email, user) if user
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mno-enterprise-api-3.1.4 config/initializers/devise_log.rb
mno-enterprise-api-3.0.7 config/initializers/devise_log.rb
mno-enterprise-api-2.0.9 config/initializers/devise_log.rb
mno-enterprise-api-3.1.3 config/initializers/devise_log.rb
mno-enterprise-api-3.0.6 config/initializers/devise_log.rb
mno-enterprise-api-2.0.8 config/initializers/devise_log.rb
mno-enterprise-api-3.1.2 config/initializers/devise_log.rb
mno-enterprise-api-3.0.5 config/initializers/devise_log.rb
mno-enterprise-api-2.0.7 config/initializers/devise_log.rb
mno-enterprise-api-2.0.6 config/initializers/devise_log.rb
mno-enterprise-api-2.0.5 config/initializers/devise_log.rb
mno-enterprise-api-3.1.1 config/initializers/devise_log.rb
mno-enterprise-api-3.0.4 config/initializers/devise_log.rb
mno-enterprise-api-2.0.4 config/initializers/devise_log.rb
mno-enterprise-api-3.1.0 config/initializers/devise_log.rb
mno-enterprise-api-3.0.3 config/initializers/devise_log.rb
mno-enterprise-api-2.0.3 config/initializers/devise_log.rb
mno-enterprise-api-3.0.2 config/initializers/devise_log.rb
mno-enterprise-api-2.0.2 config/initializers/devise_log.rb
mno-enterprise-api-3.0.1 config/initializers/devise_log.rb