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.11 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.8 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.7 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.6 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.5 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.4 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.3 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.2 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.1 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc6 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc5 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc4 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc3 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc2 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.rc1 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.22 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.21 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.4.10 lib/ddr/auth/detached_auth_context.rb
ddr-models-3.0.0.beta.20 lib/ddr/auth/detached_auth_context.rb