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-core-0.3.0 lib/ddr/auth/detached_auth_context.rb
ddr-core-0.2.2 lib/ddr/auth/detached_auth_context.rb
ddr-core-0.2.1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.11.0 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.10.2 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.10.1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.10.0 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.10.0.rc2 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.10.0.rc1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.9.2 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.9.1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.9.0 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.9.0.rc1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.8.0 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.8.0.rc1 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.7.6 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.7.5 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.7.4 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.7.3 lib/ddr/auth/detached_auth_context.rb
ddr-models-2.7.2 lib/ddr/auth/detached_auth_context.rb