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-core-1.17.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.16.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.15.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.14.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.13.2 lib/ddr/auth/remote_groups.rb
ddr-core-1.13.1 lib/ddr/auth/remote_groups.rb
ddr-core-1.13.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.12.2 lib/ddr/auth/remote_groups.rb
ddr-core-1.12.1 lib/ddr/auth/remote_groups.rb
ddr-core-1.12.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.11.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.10.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.9.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.8.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.7.0 lib/ddr/auth/remote_groups.rb
ddr-core-1.6.6 lib/ddr/auth/remote_groups.rb
ddr-core-1.6.5 lib/ddr/auth/remote_groups.rb
ddr-core-1.6.4 lib/ddr/auth/remote_groups.rb
ddr-core-1.6.3 lib/ddr/auth/remote_groups.rb
ddr-core-1.6.2 lib/ddr/auth/remote_groups.rb