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

NTLM auth for every connection #4429

Closed
kata32 opened this issue Dec 3, 2018 · 5 comments
Closed

NTLM auth for every connection #4429

kata32 opened this issue Dec 3, 2018 · 5 comments

Comments

@kata32
Copy link

kata32 commented Dec 3, 2018

I implemented NTLM authentication via OkHttpClient.authenticator and the jcifs library.
I managed to keep the same session cookie through a custom CookieManager,
everything works except the fact that authentication is requested and performed for every connection made even if the session cookie remains the same.
I expected NTLM authentication to be requested only during the first connection and then the subsequent connections were already authenticated, a bit like the browser do.
I can not really understand why.

@yschimke
Copy link
Collaborator

yschimke commented Dec 3, 2018

Do you have a code sample we can test with?

@swankjesse
Copy link
Member

If anyone is interested, I think it’s probably worth the trouble for someone to build an NTLM + OkHttp integration library. I don’t know anything about NTLM but can read source code if presented with a standalone sample.

@kata32
Copy link
Author

kata32 commented Dec 4, 2018

NTLM auth example

@swankjesse
Copy link
Member

No clear action to take here.

@yschimke
Copy link
Collaborator

FWIW - I'll try to get this working at some point, but closing for now is appropriate. It probably lives in an external library anyway.

This issue was closed.
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

No branches or pull requests

3 participants