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.2.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.3 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.2 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.0.rc2 lib/ddr/auth/remote_groups.rb
ddr-models-2.1.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc6 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc5 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc4 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc3 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc2 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.pre.5 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.pre.4 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.pre.3 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.pre.2 lib/ddr/auth/remote_groups.rb
ddr-models-2.0.0.pre.1 lib/ddr/auth/remote_groups.rb