User Management
Users, roles and multi-factor authentication.
The first administrator
FABCONNECT_ADMIN_PASSWORD creates the user admin on first start. Nothing else is seeded.
Managing users (admin role)
GET /api/v1/admin/users
GET /api/v1/admin/users/{id}
PUT /api/v1/admin/users/{id}/role
PUT /api/v1/admin/users/{id}/status
DELETE /api/v1/admin/users/{id}Self-registration (POST /api/v1/auth/register) is off by default: administrators create users. When it is turned on, a new account waits for an administrator to approve it before it can sign in. With single sign-on, roles come from the identity provider’s token.
Multi-factor
Users enrol a TOTP authenticator from the console’s Settings page (/api/v1/auth/mfa/setup, then /verify, each needing a signed-in session) and can generate backup codes. TOTP seeds are encrypted at rest.
Passwords
POST /api/v1/auth/change-password (a signed-in session) for your own; it ends every session, and with "revoke_api_keys": true also deletes your API keys in the same step (they are otherwise kept: separate credentials). Passwords are hashed with bcrypt.