简体   繁体   English

将用户凭证传递给休息服务的最佳方法

[英]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.

相关问题 通过 REST API 发送第 3 方凭据的最佳方式 - Best way to send 3rd party credentials via REST API 休息服务引发异常:处理的最佳方法 - Rest service throws exception : Best way to handle 在java中测试REST服务的最佳方法 - Best way to test a REST service in java 在我们的应用程序中保留/验证用户登录凭据的最佳方法是什么 - What is the best way to keep/validate user login credentials in our application Java 8 - 读取和存储在 REST 服务中收到的文件的最佳方式 - Java 8 - Best way to read and store a file received in REST service 如何将用户定义的对象从angularjs传递到REST服务 - How to pass user defined objects to REST service from angularjs 在 Spring Boot 中定义重要凭据的最佳方法 - Best way define important credentials in spring boot 将用户/密码凭证传递给(PlaneXML)WSDL服务 - Passing user/pwd credentials to (PlaneXML) WSDL service 使用Spring Boot和JPA,使用like语句实现查询数据库的REST服务的最佳方法是什么? - What is the best way to implement a REST service that query the database using like statement using Spring Boot and JPA? 从我的REST服务中,确定呼叫者的主机信息的最佳方法是什么? - From my REST service, what is the best way to determine the host information of the caller?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM