Sluby
REST APIAuth

How this server signs people in.

Public: the Studio reads it before anyone is signed in, to show the setup screen or the sign-in methods.

GET
/api/v1/auth/config

Public: the Studio reads it before anyone is signed in, to show the setup screen or the sign-in methods.

Response Body

The sign-in configuration.

application/json
  1. response
auth_disabled*boolean

Sign-in is off (AUTH_DISABLED): every request is the local admin.

setup_required*boolean

No admin who can sign in exists yet, so the Studio shows the setup screen. The setup code is in the server log.

methods*
Example Request
curl -X GET 'https://sluby.example.com/api/v1/auth/config'
Example Response200
{  "auth_disabled": true,  "setup_required": true,  "methods": {    "password": true,    "github": true  }}