Skip to content
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

Feature/ntlm auth #3329

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Feature/ntlm auth #3329

merged 3 commits into from
Jan 13, 2025

Conversation

tlaloc911
Copy link
Contributor

@tlaloc911 tlaloc911 commented Oct 21, 2024

Description

NTLM Auth at request level, collection level and CLI

image image

Resolves #3059

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

@tlaloc911 tlaloc911 force-pushed the feature/ntlm-auth-2 branch 2 times, most recently from 2a4eb9c to 07df644 Compare October 21, 2024 04:11
@tlaloc911 tlaloc911 force-pushed the feature/ntlm-auth-2 branch from 07df644 to 6a36609 Compare October 21, 2024 23:54
@tlaloc911
Copy link
Contributor Author

Hi @helloanoop, I created this PR a month ago and now there are conflicts with main branch. If there is any interest in this being merged, just tell me and I'll solve them.

@rrajakmd
Copy link

Could you please resolve the conflicts and enable the NTLM authentication ?

@monirul
Copy link

monirul commented Dec 19, 2024

Hi, any update? This feature could help a lot of users who cannot use bruno for testing due to lack of NTLM auth support.

@tlaloc911
Copy link
Contributor Author

I'm wating for Brunos' team feedback @helloanoop , @sreelakshmi-bruno in order to update/solve conflicts.

@sreelakshmi-bruno
Copy link
Collaborator

sreelakshmi-bruno commented Dec 23, 2024

Hi @tlaloc911, apologies for the delay. Please go ahead and update the PR. We'll get it reviewed by Jan. Thanks!

@sreelakshmi-bruno sreelakshmi-bruno self-assigned this Dec 23, 2024
@tlaloc911
Copy link
Contributor Author

Hi @tlaloc911, apologies for the delay. Please go ahead and update the PR. We'll get it reviewed by Jan. Thanks!

Thanks!, I'll update it

axiosInstance=NtlmClient(request.ntlmConfig,axiosInstance)
delete request.ntlmConfig;
}

Copy link
Collaborator

@ramki-bruno ramki-bruno Jan 8, 2025

Choose a reason for hiding this comment

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

@tlaloc911 @Pragadesh-45
httpntlm seems to be more mature than axios-ntlm and it also supports workstation param.

IMO, It'll be much cleaner to use httpntlm.ntlm directly to get the Authorization header value rather than let axios-ntlm create the Axios instance for us.

Copy link
Collaborator

@ramki-bruno ramki-bruno Jan 8, 2025

Choose a reason for hiding this comment

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

I'm going through the code on both the libraries and NTLM-Auth seems to be more complicated than I thought.

We also have to check and make sure that the retry(with type3 message) within the interceptor(added by axios-ntlm) will not have any unexpected side effects with other interceptors.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, axios-ntlm is setting new instance of httpAgent and httpsAgents and it will interfere with proxy setup. So, proxy might not work when NTLM Auth is used.

@helloanoop
Copy link
Contributor

@tlaloc911 We have reviewed the changes and it looks good.
Can you fix the conflicts on the branch and then we should be good to merge.

@helloanoop helloanoop merged commit 5500070 into usebruno:main Jan 13, 2025
0 of 2 checks passed
@helloanoop
Copy link
Contributor

I have fixed the conflicts and merged the PR.

@tlaloc911
Copy link
Contributor Author

I have fixed the conflicts and merged the PR.

thanks @helloanoop, @ramki-bruno, it is good news!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NTLM Authentication
7 participants