Sha256: 03bb1928549065a03e2f931849621be4172f5db642207ce29c4b488e6f680f90
Contents?: true
Size: 585 Bytes
Versions: 40
Compression:
Stored size: 585 Bytes
Contents
module SSO class BasicWithHidden < Basic def available? authentication = Rack::Auth::Basic::Request.new(controller.request.env) Thread.current[:service_user_login] = authentication.provided? && authentication.basic? && authentication.credentials.first =~ /virt_who_reporter_\d+/ && controller.api_request? && controller.is_a?(::Katello::Api::Rhsm::CandlepinProxiesController) end def current_user User.unscoped.where(:auth_source_id => ForemanVirtWhoConfigure::AuthSourceHiddenWithAuthentication.default.id).find_by_login(self.user) end end end
Version data entries
40 entries across 40 versions & 1 rubygems