简体   繁体   English

自动登录到其他站点 php 脚本

[英]auto login to other sites php script

I want a script by which i can login to other website without opening their login page.我想要一个脚本,我可以通过它登录到其他网站而无需打开他们的登录页面。

The scenario is like this.场景是这样的。 I do not want to give login id and password to others.我不想将登录 ID 和密码提供给其他人。 They just need to click a link or button and script will do its work.他们只需要点击一个链接或按钮,脚本就会完成它的工作。 It will pass the required login id and password and submit the login form and it is logged in. And client have all the credential.它将传递所需的登录ID和密码并提交登录表单并登录。客户端拥有所有凭据。

I would never trust any site that requires me to enter my username and password for another site.我永远不会相信任何需要我为另一个网站输入用户名和密码的网站。 How do I know you are not going to hack my account?我怎么知道你不会入侵我的帐户? Instead use OpenID .而是使用OpenID This way your users need to log in to the other site and give your site temporary access using a token.这样,您的用户需要登录到其他站点并使用令牌为您的站点提供临时访问权限。 All of the major social networking sites support OpenID or similar.所有主要的社交网站都支持 OpenID 或类似网站。

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

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