Sha256: e58986193756cb5fff07f483f1c051a7e77bf78895c7e08652a5058009ac3135
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
module SSO class BasicWithHidden < Basic def available? 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.0.2 | app/services/sso/basic_with_hidden.rb |
foreman_virt_who_configure-0.0.1 | app/services/sso/basic_with_hidden.rb |