Jack
b45ff0ef26
More descriptive errors for stryder response ( #85 )
2022-09-01 17:26:50 +02:00
GeckoEidechse
db8457a5fd
Return status code and headers on HTTP error ( #86 )
...
This allows for checking status code and or headers for more info why
request may have failed.
Co-authored-by: Alystrasz <contact@remyraes.com>
2022-08-18 23:04:27 +02:00
GeckoEidechse
6ecd6088fc
Cast environment variable to number ( #82 )
...
It's a string otherwise so setting `ORIGIN_ENABLE=0` results in `"0"` which is `true`.
2022-08-03 00:52:07 +02:00
Emma Miler
fa4fd6c9c0
Guard against duplicate ports ( #67 )
...
* Guard against duplicate ports
* remove trailing space
* block instead of replacing
* remove trailing spaces
2022-05-04 22:48:36 +02:00
Barnaby
0bc5863459
Query game port on server create ( #63 )
...
* Query game port on server create
Seems to work okay with real game servers
* Only warn on wrong line endings instead of error
2022-05-04 22:39:14 +02:00
Barnaby
5c1249e9d8
Fix modInfo not iterable maybe ( #62 )
2022-05-04 13:10:34 +02:00
Barnaby
acfc170d59
uid<->username lookup routes ( #36 )
2022-04-12 18:43:14 -03:00
Barnaby
78942467a0
Read player data endpoints ( #48 )
...
* player info and pdata endpoints
* add loadout and stats
* ratelimit category + name
2022-04-05 18:46:56 -03:00
Barnaby
9b803eb093
Minimum launcher version for client and server auth ( #55 )
...
* require minimum version
enforced on client and server auth with ms
* Use semver.gte instead of checking number explicitly
Should be morer eadable as well
* Dev version is always allowed regardless of version requirement
The idea being that contributors can compile source from source without having to change version number
By default source code is version `0.0.0+dev`
2022-03-26 02:27:56 +01:00
Barnaby
737c637c9f
Proper name spoofing protection (API change, no actual protection!) ( #42 )
...
* Working username fetching and db field
also sends the username in authenticate_incoming_player
* Update dev.env
* Switch from using puppeteer to just http
* Fix indentation
* fail open instead of closed
if i’m not mistaken, failing every time they auth will result in username being “null”, otherwise will remain as the previous value
* should make the default username in db be empty string
* Fix username fetch (added missing package)
* Format
* eslint pain
* eslint pain episode 2
* switch to async func over promise
* i removed by accident, makes it work again
* allow origin stuff to be disabled
* Add persistent sid cookie
* remove newline in sid.cookie
* automatic db upgrading using dbSchema.json
* Catch origin auth error
* Nicely do this instead
* Save non-authed state when failing
2022-03-24 21:22:12 +00:00
hummusbird
85c0cd2966
Limit max players to 32 ( #46 )
2022-03-08 21:45:32 -03:00
Barnaby
a57adf994f
fix verify on revive ghost server ( #47 )
...
* fix verify on revive ghost server
* Add this cause undefined return fucks it up
2022-03-08 23:49:38 +00:00
Barnaby
82da2b9784
Catch bad request response ( #44 )
2022-03-07 01:15:11 +00:00
Barnaby
2c69c0a137
Add ghost server logic ( #41 )
...
Allows servers to reregister with the same id without any change to launcher code
2022-03-04 19:45:22 -03:00
Barnaby
e42eaf6888
fix mistakenly commented function that breaks game server auth ( #43 )
2022-03-03 22:33:46 +00:00
Barichello
860f667e5b
Implement returning of failure error codes
2022-02-26 16:25:30 -03:00
Barichello
155ed9006d
Add eslint ignore to specific cases
2022-02-26 16:25:30 -03:00
Northstar
1d8eb277cc
Format project
2022-02-26 15:43:05 -03:00
Barichello
cfff493143
Add errorcodes.js
2022-02-26 15:30:10 -03:00
Barnaby
a8cd0a3ae7
Change a few minor things ( #35 )
...
This might've worked, from my testing there were no problems
2022-02-23 20:38:48 +00:00
Barnaby
401c8a48a8
Change to use Date.now() + indent fix ( #34 )
...
Seems to be working okay
2022-02-22 18:04:33 +00:00
Emma Miler
afbea69843
Add caching to /client/servers ( #30 )
...
* Caching
* Update serverlist.js
* Re-add husky
* Add the actual code and fix update_values
2022-02-21 01:05:08 +00:00
Barnaby
95ca547a38
Fix DB creation for auth IP checks
2022-01-26 19:25:09 +00:00
Barnaby
0654d159e1
Ratelimit endpoints ( #20 )
2022-01-23 17:35:45 -03:00
Barnaby
c69890a47a
require ip to be the same as the last auth ip for write_persistence
...
(untested but should work, gave bob a script to add the lastAuthIp column to the db)
2022-01-19 16:48:18 +00:00
Connor Sullivan
a736aec198
Fix typo in modPersistentData table
2022-01-10 17:50:52 -03:00
BobTheBob
5aa0ed27d5
move to server auth token system for verifying gameserver auth messages, rather than ip
2021-12-30 18:08:55 +00:00
BobTheBob
1e1538973a
fix a pretty bad typo
2021-12-19 03:35:39 +00:00
BobTheBob
239b147055
fixing some stuff for testing
2021-12-05 01:55:44 +00:00
BobTheBob
fda61da56f
initial mod pdef stuff and project structure improvements
2021-11-27 00:37:34 +00:00
BobTheBob
f65a2e8d07
working auth
2021-11-13 18:45:33 +00:00
BobTheBob
aaa1f2488e
oops forgot to commit
2021-11-07 22:08:51 +00:00
BobTheBob
b073906510
initial commit
2021-09-06 00:27:59 +01:00