Sha256: 18d8ef3bf5596d95b7a4259c28f69ad69a0fe1a3eb9e87b45335c4096bf0b092
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 KB
Contents
require 'devise' module Devise # The hostname or IP address of the radius server mattr_accessor :radius_server # A list of radius servers with optional port. # Example: ['127.0.0.1:11812', '10.20.30.40'] mattr_accessor :radius_servers @@radius_servers = [] # The port for the radius server mattr_accessor :radius_server_port @@radius_server_port = 1812 # The secret for the radius server mattr_accessor :radius_server_secret # The timeout in seconds for radius requests mattr_accessor :radius_server_timeout @@radius_server_timeout = 60 # The number of times to retry radius requests mattr_accessor :radius_server_retries @@radius_server_retries = 0 # The database column that holds the unique identifier for the radius user mattr_accessor :radius_uid_field @@radius_uid_field = :radius_uid # The procedure to use to build the unique identifier for the radius user mattr_accessor :radius_uid_generator @@radius_uid_generator = Proc.new { |username, server| "#{username}@#{server}" } # The path to load radius dictionary files from mattr_accessor :radius_dictionary_path # Option to handle radius timeout as authentication failure mattr_accessor :handle_radius_timeout_as_failure @@handle_radius_timeout_as_failure = false end Devise.add_module(:radius_authenticatable, :route => :session, :strategy => true, :controller => :sessions, :model => true)
Version data entries
4 entries across 4 versions & 1 rubygems