[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

user and password are in configuration file

Hi experts, we currently have web service clients that consume other web services. The problem is that the user and password are in configuration file, then any network administrator can read.

 That mechanism should implement to avoid this, I read
 Active Directory integrated authentication, pam or ldap.

the original question
1 Solution
You could encrypt that portion of your config if this is running under iis:

Never mind.  I thought you had one web service calling another web service, not clients.

Here's a previous post where I gave some functions for encrypting and decrypting values.

But ultimately you still have a problem - where do you store the encryption keys?  You can compile them into the code or make a request to get them but all if that is something a savvy user could get to.  I'm thinking the only real way to protect your third party services is to proxy your client's calls.

Featured Post

Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

Tackle projects and never again get stuck behind a technical roadblock.
Join Now