使用自定义验证器的 wcf 消息层安全用户名身份验证 [英] wcf message layer security username authentication with custom validator

查看:30
本文介绍了使用自定义验证器的 wcf 消息层安全用户名身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在使用自定义验证器时不一定要将用户名和密码存储在数据库中,那么存储用户名和密码的最佳位置在哪里?

Where is the best place to store the username and password if I don't necessarily want to store it in the database when using a custom validator?

谢谢

推荐答案

如果您有 1 或 2 个用户 MAX,您可以将它们存储在 app.config 或 reg 文件中,但如果您认为会有更多,那么DB将是最好的选择.从 SQL 服务器获取它们几乎没有任何成本.另外,看看这个:在注册表中存储和加密 SMTP 凭据

if you have 1 or 2 user MAX you can store them in the app.config or maybe in the reg file but if you think you will have more, then the DB will be the best choice. It cost almost nothing to get them from a SQL server.Also, take a look at this : Storing and encrypting SMTP credentials in the registry

这篇关于使用自定义验证器的 wcf 消息层安全用户名身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆