Sha256: 68980c8eb1e5bb9bde20d735fe9802f11df721c4b04a31b8897a1fb44892fd62

Contents?: true

Size: 276 Bytes

Versions: 160

Compression:

Stored size: 276 Bytes

Contents

module Ddr::Auth
  class RemoteGroups

    # @param auth_context [AuthContext]
    # @return [Array<Group>]
    def self.call(auth_context)
      auth_context.ismemberof.map do |id|
        Group.new id.sub(/\Aurn:mace:duke\.edu:groups/, "duke")
      end
    end

  end

end

Version data entries

160 entries across 160 versions & 2 rubygems

Version Path
ddr-models-2.4.2 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.beta.4 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc6 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.beta.3 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc5 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc4 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.beta.2 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc3 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc2 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.3.2 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.beta.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.3.1 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.alpha.4 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.alpha.3 lib/ddr/auth/remote_groups.rb
ddr-models-2.3.0 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.alpha.2 lib/ddr/auth/remote_groups.rb
ddr-models-3.0.0.alpha.1 lib/ddr/auth/remote_groups.rb