[英]Best way to pass User Credentials To Rest Service
I am building REST Service which will provide Authentication functionality( Connects To LDAP to Authenticate user Credentials).What is the best way to pass user credentials to REST. 我正在构建REST服务,它将提供身份验证功能(连接到LDAP以验证用户凭据)。将用户凭据传递给REST的最佳方法是什么。 Is that best practice to send user credentials in Request body (POST), if not what are the best practices for this kind of scenarios.
最好的做法是在请求正文(POST)中发送用户凭据,如果不是,这种情况下的最佳做法是什么。
There are several ways to do this. 有几种方法可以做到这一点。 Amazon has a pretty interesant method of authentication that uses headers with timestamp tokens with symmetric passwords.
亚马逊有一种非常有趣的身份验证方法,该方法使用带有时间戳记令牌和对称密码的标头。 I used this one as a model to design a solution at the company that i work for.
我以此为模型在我工作的公司设计解决方案。
Here is the link. 链接在这里。 Its pretty easy to implement:
它很容易实现:
http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html http://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.