v1.0.0 - Autenticação para MuEmu
Use este endpoint no GameServer (Protect.cpp) para validar licenças.
mysql -u root -p < sql/mysql_tables.sql
define('API_KEY', 'sua_chave');define('DB_HOST', 'localhost');define('DB_NAME', 'muonline');
CustomerName=GBSOficialCustomerHardwareId=1234...ABCUseApiMode=1ApiUrl=http://seu-servidor.com/api/v1/auth.phpApiKey=sua_chave
Use curl ou Postman para testar:
curl -X POST http://auth.helpserver.net/v1/auth.php \
-H "Content-Type: application/json" \
-H "X-API-Key: sua_chave" \
-d '{"customer_name":"GBSOficial","hardware_id":"1234...","server_type":"game_server"}'
Testar no Navegador
{
"status": "success",
"data": {
"valid": true,
"package_type": 1,
"plan_type": 1,
"customer_name": "GBSOficial",
"hardware_id": "1234...ABC"
}
}
| Tabela | Descrição |
|---|---|
User |
Usuários/Clientes |
License |
Licenças (UserId, ProductId, HardwareId) |
AuthLog |
Log de autenticações |
ProductId: 1=Connect, 2=Join, 3=Data, 4=Game
AuthServer API - Integrada com GameServer MuEmu