If you’ve written your own singleuser server you’ll need to implement authorisation yourself. See for example