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

Initialize NetworkCredentials in EmailConnectionInfo #91

Conversation

adriangutowski
Copy link

Fixes #90

@adriangutowski
Copy link
Author

@nblumhardt,
could you take a look at my PR?

@nblumhardt
Copy link
Member

Thanks for the PR! I'm not sure whether this change will prevent the use of default credentials in environments that depend on them - unfortunately I'm short of time to investigate.

Any other maintainers currently following this repo with some bandwidth? :-)

@adriangutowski
Copy link
Author

adriangutowski commented Jan 8, 2021

@nblumhardt,
thank you for your prompt reply. I did some research into this - and apparently it should not be an issue. Take a look at this:
https://stackoverflow.com/a/14130274/7980221

If we are talking about the following null check, then you are right.

if (_connectionInfo.NetworkCredentials == null)
smtpClient.UseDefaultCredentials = true;
else
smtpClient.Credentials = _connectionInfo.NetworkCredentials;

I need more time to investigate. I will get back to you as soon as I have the solution.

@adriangutowski
Copy link
Author

@nblumhardt,
how about setting the default value for NetworkCredentials to CredentialCache.DefaultNetworkCredentials? Could you take a look at my latest commit (26a2d4e)?

@nblumhardt
Copy link
Member

Sorry Adrian, I don't have any environment in which to test these things, so this has been sitting on my TODO list for a while. Can you share any details of what testing/investigation you've done? (E.g. why do you think this will preserve the existing behavior?)

Many thanks,
Nick

@nblumhardt
Copy link
Member

Closing this one as stale, but thanks for sending the PR!

@nblumhardt nblumhardt closed this Jun 9, 2024
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.

Error during reading sink configuration from JSON file
2 participants