Sha256: 2fe6d276ef4a3a3ebeaa2b716a2dfa530cbb2274d42f3460fbf7db988e3a3500

Contents?: true

Size: 1.29 KB

Versions: 8

Compression:

Stored size: 1.29 KB

Contents

module Ddr
  module Auth
    extend ActiveSupport::Autoload

    autoload :User
    autoload :Superuser
    autoload :Ability
    autoload :GroupService
    autoload :GrouperService
    autoload :RemoteGroupService

    # Group authorized to act as superuser
    mattr_accessor :superuser_group

    # Group authorized to create Collections
    mattr_accessor :collection_creators_group

    ## Remote groups (i.e., Grouper) config settings
    # request.env key for group memberships
    mattr_accessor :remote_groups_env_key do
      "ismemberof"
    end

    # request.env value internal delimiter
    mattr_accessor :remote_groups_env_value_delim do
      ";"
    end

    # pattern/repl for converting request.env membership values to proper (Grouper) group names
    mattr_accessor :remote_groups_env_value_sub do
      [/^urn:mace:duke\.edu:groups/, "duke"]
    end

    # Filter for getting list of remote groups for the repository - String, not Regexp
    mattr_accessor :remote_groups_name_filter do
      "duke:library:repository:ddr:"
    end

    # Name of group of which everyone (including anonymous users) is a member
    mattr_accessor :everyone_group do
      "public"
    end

    # Group of authenticated users
    mattr_accessor :authenticated_users_group do
      "registered"
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ddr-models-1.9.0 lib/ddr/auth.rb
ddr-models-1.8.1 lib/ddr/auth.rb
ddr-models-1.8.0 lib/ddr/auth.rb
ddr-models-1.7.0 lib/ddr/auth.rb
ddr-models-1.6.0 lib/ddr/auth.rb
ddr-models-1.5.0 lib/ddr/auth.rb
ddr-models-1.4.0 lib/ddr/auth.rb
ddr-models-1.3.0 lib/ddr/auth.rb