Sha256: cbe6d78b2c86bfa87413b002683d68b8a4957c49ef520b0d2a6c3d01f03e5798
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
module SSO class BasicWithHidden < Basic def available? Thread.current[:service_user_login] = controller.api_request? && http_auth_set? && 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_virt_who_configure-0.1.1 | app/services/sso/basic_with_hidden.rb |
foreman_virt_who_configure-0.1.0 | app/services/sso/basic_with_hidden.rb |