Skip to content

Conversation

@DhivyaBharathi215
Copy link
Contributor

Added ssl certificate based authentication in addition to basic username and password authentication

Copy link
Contributor

@suhasbshekar suhasbshekar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good, please fix the lint issues


// setAuthMethod determines the authentication method based on available credentials
func (c *HTTPClient) setAuthMethod() (AuthMethod, error) {
// Defaults to cert authentication if both basic and client certificate authentication parameters are given
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@suhasbshekar Is it a good idea to allow user to input both basic and cert auth? Setting default seems not explicit enough.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is actually not Defaulted, we should change the wording in the comment, users are allowed to input both basic and cert auth, if they use it together, then cert auth is considered, @DhivyaBharathi215 you can change the wording to "cert auth is prioritized if f both basic and client certificate authentication parameters are given

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as of now, ansible is having the same logic as well, it seems right, let user be free to configure, if they provide both, lets have a priority of which needs to be considered

@chuyich
Copy link
Contributor

chuyich commented Sep 24, 2025

Do we need the documentation regarding this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[New Service]: also access with SSL certificate in lieu of Username/password

5 participants