简体   繁体   English

Rest Api HTTPS验证

[英]Rest Api HTTPS Validation

I am developing a new api using rest api php. 我正在使用rest api php开发新的api。 This API can only operate securely over SSL/TLS. 该API只能通过SSL / TLS安全运行。 All API requests must be made over HTTPS. 所有API请求都必须通过HTTPS进行。 Calls made over plain HTTP will fail and the api client must authenticate for all requests. 通过纯HTTP进行的调用将失败,并且api客户端必须对所有请求进行身份验证。 What can we do. 我们能做些什么。

I have used RestServer Controller for this. 我已经为此使用过RestServer Controller。

A fully RESTful server implementation for CodeIgniter using one library, one config file and one controller. 使用一个库,一个配置文件和一个控制器的CodeIgniter的完全RESTful服务器实现。

Here is the link:- https://github.com/chriskacerguis/codeigniter-restserver 这是链接: -https : //github.com/chriskacerguis/codeigniter-restserver

Just go through the implementation. 只需执行一下即可。

Hope this help. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM