randomouscrap98 / contentapi

A generic content system to make some kinda standard websites
GNU General Public License v3.0
9 stars 2 forks source link

Add special settable token to allow anonymous websocket listen #127

Closed randomouscrap98 closed 2 years ago

randomouscrap98 commented 2 years ago

For the purposes of writing certain kinds of bots, add a special settable token in the listener config which lets bots make requests and listen for updates through the websocket endpoint. They will specifically need to be stopped from setting anything though; set the UID to 0, which will save from most writes, but probably won't fix the user status service. Or, just update the user status service to not accept bad uids...

randomouscrap98 commented 2 years ago

This was tested on oboy and appears to work