Sha256: 737d24cf800c3fe59d8d322c04543b17bad08b08b68f6ea253116570229689b3

Contents?: true

Size: 1.5 KB

Versions: 4

Compression:

Stored size: 1.5 KB

Contents

module CASino
  class Listener

    # include helpers to have the route path methods (like sessions_path)
    include CASino::Engine.routes.url_helpers

    autoload :LegacyValidator, 'casino/listener/legacy_validator.rb'
    autoload :LoginCredentialAcceptor, 'casino/listener/login_credential_acceptor.rb'
    autoload :LoginCredentialRequestor, 'casino/listener/login_credential_requestor.rb'
    autoload :Logout, 'casino/listener/logout.rb'
    autoload :OtherSessionsDestroyer, 'casino/listener/other_sessions_destroyer.rb'
    autoload :ProxyTicketProvider, 'casino/listener/proxy_ticket_provider.rb'
    autoload :SecondFactorAuthenticationAcceptor, 'casino/listener/second_factor_authentication_acceptor.rb'
    autoload :SessionDestroyer, 'casino/listener/session_destroyer.rb'
    autoload :SessionOverview, 'casino/listener/session_overview.rb'
    autoload :TicketValidator, 'casino/listener/ticket_validator.rb'
    autoload :TwoFactorAuthenticatorActivator, 'casino/listener/two_factor_authenticator_activator.rb'
    autoload :TwoFactorAuthenticatorDestroyer, 'casino/listener/two_factor_authenticator_destroyer.rb'
    autoload :TwoFactorAuthenticatorOverview, 'casino/listener/two_factor_authenticator_overview.rb'
    autoload :TwoFactorAuthenticatorRegistrator, 'casino/listener/two_factor_authenticator_registrator.rb'

    def initialize(controller)
      @controller = controller
    end

    protected
    def assign(name, value)
      @controller.instance_variable_set("@#{name}", value)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
casino-1.3.2 lib/casino/listener.rb
casino-1.3.1 lib/casino/listener.rb
casino-1.3.0 lib/casino/listener.rb
casino-1.2.2 lib/casino/listener.rb