-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for httpd auth-api service for containers. #15881
Conversation
892cc2b
to
0c7f4f8
Compare
2d0ef80
to
2a69c87
Compare
This pull request is not mergeable. Please rebase and repush. |
5cf8993
to
a7a610f
Compare
a7a610f
to
4a8721a
Compare
6247173
to
a708ff9
Compare
a708ff9
to
826a38d
Compare
I have no idea what the |
If it's going into services, it should be namespaced properly for autoload, so it should be Services::AuthApiService, which I don't like. I think it should just be in the lib directory directly. |
With it not being in lib/services, maybe it should also be renamed to HttpdAuthApi. Thoughts ? |
I'm good with HttpdAuthApi |
- Enhanced fetching user attributes via dbus to use the httpd auth-api service for containers. - Enhanced fetching user groups via dbus to use the httpd auth-api service for containers. - Updated rspecs
- dbus dropped from the URL - Moved logic to a common AuthApiService - Added tests for AuthApiService
- Moved the library from lib/services/auth_api_service.rb to lib/httpd_auth_api.rb
826a38d
to
0fb40b1
Compare
Checked commits abellotti/manageiq@6dc35a1~...0fb40b1 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
def auth_api(request_url) | ||
host = ENV["HTTPD_AUTH_API_SERVICE_HOST"] | ||
port = ENV["HTTPD_AUTH_API_SERVICE_PORT"] | ||
conn = Faraday.new(:url => "http://#{host}:#{port}") do |faraday| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this use the URI::HTTP.build
?
Related PRs: