【发布时间】:2021-03-14 05:01:58
【问题描述】:
我暴露了下面的rest api方法
[OperationContract]
[WebInvoke(Method = "GET", UriTemplate = "/GetStuff?userName={userName}&password={password}&howMany={howMany}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
Things[] GetStuff(string userName, string password, int howMany);
通过 https 将用户名和密码作为查询字符串的一部分发送是安全的,还是有更好的身份验证方式?
【问题讨论】:
-
网址存储在网络服务器日志、浏览器历史记录等中。如果您认为这是安全的,那么您就有了答案……总有更好的方法
标签: c# api rest wcf authentication