-
Notifications
You must be signed in to change notification settings - Fork 141
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
Drop legacy Host credentials payload, replaced by DDF params #1244
Conversation
b33208b
to
3f9e2a8
Compare
creds.reverse_merge!(:userid => host.authentication_userid(auth_type)) | ||
hash[auth_type.to_sym] = creds | ||
if authentications.present? | ||
authentications.deep_symbolize_keys! |
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.
NOTE update_authentications only works with symbolized keys
remember_host = data["remember_host"] == "true" | ||
authentications, auth_type = symbolize_password_keys!(data[AUTH_ATTR]) | ||
{:task_id => host.verify_credentials_task(User.current_userid, auth_type, :credentials => authentications, :remember_host => remember_host)} | ||
auth_type = data["authentications"].keys.first |
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.
NOTE In the future I'd like to make Host#verify_credentials
as close as possible to ExtManagementSystem#verify_credentials
which takes just the data payload and no auth_type.
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.
LGTM, just one minor question in the specs.
3f9e2a8
to
6edb2a3
Compare
Checked commit agrare@6edb2a3 with ruby 2.7.8, rubocop 1.56.3, haml-lint 0.51.0, and yamllint |
For a period of time we supported both the older
:credentials
payload as well as the newer DDFauthentications => {auth_type => {userid, password}}
style.#1202
Now that the host edit form is in react (ManageIQ/manageiq-ui-classic#8608) we no longer need to keep this old style around.
Depends on:
Follow-up: