Sha256: deacbc03c4fe1db2101ccd18b0114a79a12a304174ce4e22a4760aaea40ab50f

Contents?: true

Size: 355 Bytes

Versions: 2

Compression:

Stored size: 355 Bytes

Contents

module ForemanVirtWhoConfigure
  class AuthSourceHiddenWithAuthentication < ::AuthSourceHidden
    def self.default
      AuthSource.without_auditing do
        where(:name => 'HiddenWithAuthentication').first_or_create!
      end
    end

    def authenticate(login, password)
      AuthSourceInternal.new.authenticate(login, password)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_virt_who_configure-0.0.2 app/models/foreman_virt_who_configure/auth_source_hidden_with_authentication.rb
foreman_virt_who_configure-0.0.1 app/models/foreman_virt_who_configure/auth_source_hidden_with_authentication.rb