Sha256: c6b33dab3cbf3d7ea93afa9ade46cc5faf0518f94786bb1e81944619be296580

Contents?: true

Size: 1.55 KB

Versions: 12

Compression:

Stored size: 1.55 KB

Contents

module Ddr
  module Auth
    extend ActiveSupport::Autoload

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

    # 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

    # Whether to require Shibboleth authentication 
    mattr_accessor :require_shib_user_authn do
      false
    end

    mattr_accessor :sso_logout_url do
      "/Shibboleth.sso/Logout?return=https://shib.oit.duke.edu/cgi-bin/logout.pl"
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddr-models-1.11.8 lib/ddr/auth.rb
ddr-models-1.12.3 lib/ddr/auth.rb
ddr-models-1.11.7 lib/ddr/auth.rb
ddr-models-1.12.2 lib/ddr/auth.rb
ddr-models-1.11.6 lib/ddr/auth.rb
ddr-models-1.12.1 lib/ddr/auth.rb
ddr-models-1.11.5 lib/ddr/auth.rb
ddr-models-1.12.0 lib/ddr/auth.rb
ddr-models-1.11.4 lib/ddr/auth.rb
ddr-models-1.11.3 lib/ddr/auth.rb
ddr-models-1.11.2 lib/ddr/auth.rb
ddr-models-1.11.1 lib/ddr/auth.rb