Sha256: b1fb91ff8200c2007d27a06b860821a43d6b53b67b547181a9fce06c0be097f0

Contents?: true

Size: 336 Bytes

Versions: 160

Compression:

Stored size: 336 Bytes

Contents

module Ddr::Auth
  class DetachedAuthContext < AuthContext

    def affiliation
      anonymous? ? super : ldap_result.affiliation
    end

    def ismemberof
      anonymous? ? super : ldap_result.ismemberof
    end

    private

    def ldap_result
      @ldap_result ||= Ddr::Auth.ldap_gateway.find(user.user_key)
    end

  end
end

Version data entries

160 entries across 160 versions & 2 rubygems

Version Path
ddr-models-2.4.9 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.18 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.8 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.17 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.16 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.15 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.14 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.13 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.12 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.11 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.7 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.6 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.5 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.10 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.9 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.8 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.7 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.4 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.6 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.3 lib/ddr/auth/detached_auth_context.rb