lib/ddr/auth.rb in ddr-models-1.13.1 vs lib/ddr/auth.rb in ddr-models-1.13.2

- old
+ new

@@ -10,11 +10,10 @@ autoload :GrouperGateway autoload :Groups autoload :LdapGateway autoload :LegacyPermissions autoload :LegacyRoles - autoload :Person autoload :Permission autoload :RoleBasedAccessControlsEnforcement autoload :Roles autoload :Superuser autoload :User @@ -25,18 +24,18 @@ # Name of group whose members are authorized to create Collections mattr_accessor :collection_creators_group # Group of which everyone (including anonymous users) is a member def self.everyone_group - warn "DEPRECATION WARNING: `Ddr::Auth.everyone_group` is deprecated; use `Ddr::Auth::Groups::Public`." - Groups::Public + warn "DEPRECATION WARNING: `Ddr::Auth.everyone_group` is deprecated; use `Ddr::Auth::Groups::PUBLIC`." + Groups::PUBLIC end # Group of authenticated users def self.authenticated_users_group - warn "DEPRECATION WARNING: `Ddr::Auth.authenticated_users_group` is deprecated; use `Ddr::Auth::Groups::Registered`." - Groups::Registered + warn "DEPRECATION WARNING: `Ddr::Auth.authenticated_users_group` is deprecated; use `Ddr::Auth::Groups::REGISTERED`." + Groups::REGISTERED end # Whether to require Shibboleth authentication mattr_accessor :require_shib_user_authn do false @@ -50,17 +49,9 @@ GrouperGateway end mattr_accessor :ldap_gateway do LdapGateway - end - - def self.get_agent_class(agent_type) - agent_class = const_get(agent_type.to_s.camelize) - unless agent_class < Agent || agent_class === Agent - raise ArgumentError, "#{agent_type.inspect} is not a valid agent type." - end - agent_class end end end