Mojito
Bronze Elite
- Joined
- Mar 27, 2021
- Messages
- 6
- Reaction score
- 13
- Points
- 146
Mojito Auth
NodeJS authentication server for developers with IP Locking and Remote Script Loading capability. Using Express JS for the REST API and Discord.js for logging and whitelisting commands. Full source code and README included so you can host yourself. PM For more info.
Use the command !authorise [ip] [resourcename] to whitelist an IP address for a script and !deauthorise [ip] [resourcenam] to remove an IP address from the whitelist for a script.
Example Usage:
Screenshots:
NodeJS authentication server for developers with IP Locking and Remote Script Loading capability. Using Express JS for the REST API and Discord.js for logging and whitelisting commands. Full source code and README included so you can host yourself. PM For more info.
Use the command !authorise [ip] [resourcename] to whitelist an IP address for a script and !deauthorise [ip] [resourcenam] to remove an IP address from the whitelist for a script.
Example Usage:
Code:
-- Perform request to IP and port of the auth server with the resource name as a query
PerformHttpRequest(("http://127.0.0.1:3000/?script=%s"):format(GetCurrentResourceName()), function(err, data, headers)
if data then
-- if authorised then code is sent over net and executed
local loading = load or loadstring
loading(data)()
else
-- if the user is not authorised the code is not sent and you can print a message or do whatever
print("YOU ARE NOT AUTHORISED TO USE THIS SCRIPT")
--os.exit() to crash their console for example
end
end, "GET")
Screenshots:
Hidden link for visitors, to see
Log in or register now.
Last edited: