我已经构建了两个单独的游戏,我希望它们共享相同的登录系统。因此,如果您有一个用于两种游戏的帐户。
但是当他们第一次注册并登录时,我不想将他们重定向到集中式系统,因为我希望注册/登录过程尽可能简单,因为我担心他们会失去兴趣。
所以我在考虑让他们正常登录网站,然后cURL通过构建 API 将请求发送到中心化网站。
然而,我想知道这是否是一个好方法,因为没有一个网站在同一个网络上。我想我必须以只接受来自游戏所在域的请求的方式构建集中式登录系统。但是我还有其他需要担心的事情吗?我应该如何发送例如密码?因为向他们发送纯文本似乎是一个可怕的想法,所以我想我必须在游戏的一边对它们进行哈希处理。我想我将不得不制作用户表的一个小副本,例如usernameand user_id。
I don't want to use for example OpenID or Facebook Connect or something because that does mean redirecting to an external system (which is bad for user experience) and the average age off players on the website is about fourteen, so they have no clue about OpenID and I don't want to force them to connect their Facebook accounts to my websites.
Also I'm sorry if I'm unclear or writing in bad English, I'm not a native and having a hard time expressing myself the right way.
Thanks in advance!