Roblox 在奖励网站上使用用户名登录Robox

Roblox 在奖励网站上使用用户名登录Robox,roblox,Roblox,嗨,我知道这可能不是问这个问题的地方,但我现在很困惑,因为我似乎找不到任何与Roblox工作相关的参考资料或文档。我的意思是,他们肯定有授权路线等,但没有详细说明。我想使用用户名登录用户,并根据他们在网站上采取的不同行动(如完成调查等)为他们提供roblox。任何人都可以给我一些链接,这些链接可以用于特定用途。谢谢。Roblox不支持任何OAuth系统,但您仍然可以使用HttpService:GetAsync()函数从网站获取字符串/数据(如果网站中的页面显示该文本),保持从url(网页)接收的

嗨,我知道这可能不是问这个问题的地方,但我现在很困惑,因为我似乎找不到任何与Roblox工作相关的参考资料或文档。我的意思是,他们肯定有授权路线等,但没有详细说明。我想使用用户名登录用户,并根据他们在网站上采取的不同行动(如完成调查等)为他们提供roblox。任何人都可以给我一些链接,这些链接可以用于特定用途。谢谢。

Roblox不支持任何OAuth系统,但您仍然可以使用HttpService:GetAsync()函数从网站获取字符串/数据(如果网站中的页面显示该文本),保持从url(网页)接收的数据安全的方法是在服务器端使用HttpService:GetAsync()函数存储脚本(示例:RobloxScriptService)。您需要在游戏设置->roblox studio中的安全性中允许http请求。脚本示例:

  local HttpService = game:GetService("HttpService")

local stringg = HttpService:GetAsync("https://pastebin.com/raw/k7S6Ln9R")

print(string)
--Should outpud data written ot the web page, you can use any web page to store data even your own
剩下的两件事就是让web服务器重写页面,或者通过将url放入loadstring()函数来使用网站上的一些数据库。 现在,您只需要解析url给定的字符串即可使用其数据。 我在loadstring()中写入的pastebin url只是一个示例,您可以编写任何您想要的内容,但同样需要解析从url获取的数据,或者只是将字符串转换为页面上的文本类型,然后检查它们是否写入url/网页。示例:

local writtenpass = game.Players["anyplayer"].PlayerGui.TestGui.Frame.PasswordTextBox.text

local writtenlogin = game.Players["anyplayer"].PlayerGui.TestGui.Frame.LoginTextBox.text


local HttpService = game:GetService("HttpService")

local   response = HttpService:GetAsync("https://pastebin.com/raw/k7S6Ln9R")



local istrue = string.find(response, "{ login = ".. writtenlogin .." pass = ".. writtenpass .." }")

print(istrue)


if istrue == 1 then
        print("exist!")
--whatewer actions if login and pass exist
        end
    
你可以在这里查看页面

好吧,那是很大的损失!
如果它有助于标记我

如果只需要用户名,将如何实现安全性?Roblox目前不支持任何类型的OAuth或外部登录。验证用户的唯一方法是使用其未记录的登录API,该API需要用户名和密码。