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.7.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.7.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.7.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.2 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.0.rc4 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.0.rc3 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.0.rc2 lib/ddr/auth/remote_groups.rb
ddr-models-2.6.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.5.3 lib/ddr/auth/remote_groups.rb
ddr-models-2.5.2 lib/ddr/auth/remote_groups.rb
ddr-models-2.5.1 lib/ddr/auth/remote_groups.rb
ddr-models-2.5.0 lib/ddr/auth/remote_groups.rb
ddr-models-2.5.0.rc1 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.16 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.15 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.14 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.13 lib/ddr/auth/remote_groups.rb
ddr-models-2.4.12 lib/ddr/auth/remote_groups.rb