Sha256: f7102ae9ff75ff5dfa7aee9f655d7eaed46b9056fcaabdf5b24b4d12db344dee

Contents?: true

Size: 533 Bytes

Versions: 5

Compression:

Stored size: 533 Bytes

Contents

module SSO
  class Base
    attr_reader :controller
    attr_accessor :user
    delegate :request, :to => :controller

    def initialize(controller)
      @controller = controller
    end

    def support_login?
      false
    end

    def support_logout?
      false
    end

    def authenticated?
      raise NotImplemented, 'authenticated? not implemented for this authentication method'
    end

    def authenticate!
      raise NotImplemented, 'authenticate! not implemented for this authentication method'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/lib/sso/base.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/lib/sso/base.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/lib/sso/base.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/lib/sso/base.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/lib/sso/base.rb