R-Auth - Setup

POST request to /api/setup endpoint with following parameters will initialize the system.

curl -X POST \
  "https://${SERVER_URL:-http://localhost:3000}/api/setup" \
  -H "Content-Type: application/json" \
  -d '{
    "issuerUrl": "https://rauth.example.com/acme",
    "organizationName": "Example Inc",
    "fullName": "R-Auth Administrator",
    "email": "admin@example.com",
    "phone": "+919876543210"
    "adminPassword": "14CharP@ssword"
  }'

Note:

  • SERVER_URL is where the R-Auth backend service is available. Above command defaults to http://localhost:3000.
  • issuerUrl: Issuer URL, the base url for R-Auth setup, example: https://rauth.example.com/acme
  • organizationName: Example, Example Inc.
  • fullName: Full name of the first administrator user. example, R-Auth Administrator.
  • email: Email of the first administrator user, example, admin@example.com
  • adminPassword: Password for the first administrator user, example 14CharP@ssword MUST be a secure password.
  • phone: Phone of the first administrator user, example: +919876543210. MUST be in E.164 format.
Discard
Save