Sha256: 8950a0dfd34f69268b006d8e18a84a3d24660bbb06fe922a36a7a09cf8873b58

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

require "devise"
require "devise_oam/strategies/header_authenticatable"
require "devise_oam/authenticatable_entity"

module DeviseOam
  
  # Settings
  mattr_accessor :oam_header
  mattr_accessor :user_class
  mattr_accessor :user_login_field
  mattr_accessor :create_user_if_not_found
  mattr_accessor :create_user_method
  mattr_accessor :ldap_header
  mattr_accessor :roles_setter
  
  def self.setup
    yield self
  end
  
  def self.user_class
    @@user_class.constantize
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
devise_oam-0.0.2 lib/devise_oam.rb
devise_oam-0.0.1 lib/devise_oam.rb