简体   繁体   English

仅使用Electron(Atom外壳)和PHP + mysql服务器的身份验证表

[英]authentication form using Electron (Atom shell) and PHP+mysql server only

I want to authenticate users of my app, I know how to do it using php on client but Electron can't use PHP at client side 我想对我的应用程序的用户进行身份验证,我知道如何在客户端上使用php进行操作,但是Electron不能在客户端使用PHP

Is there a way to authenticate users from mysql in Electron's app? 有没有办法在Electron的应用程序中从mysql认证用户?

I need something like $_SESSION (PHP) 我需要类似$_SESSION (PHP)的东西

Thanks for the help :D 感谢您的帮助:D

First never authenticate on the client side. 首先,永远不要在客户端进行身份验证。 Always on server side. 始终在服务器端。 Use OAuth´s PHP Implementation or write you own implementation. 使用OAuth的PHP实现或编写您自己的实现。 Then simply use node´s native https request and return json from your server, PHP script. 然后,只需使用node的本机https请求并从您的服务器PHP脚本返回json。 Please do a lot more research on application design and security. 请对应用程序设计和安全性进行更多研究。

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

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