Authentication

The /api/v1/auth endpoint provides some authentication and authorization helper endpoints.

Get a Token

Get a token using standard OpenID Connect mechanics.

POST /api/v1/auth/token \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'grant_type=password' \
  -d 'username=johndoe' \
  -d 'password=A3ddj3w' \
  -d 'client_id=your_client_id' \
  -d 'client_secret=your_client_secret' \
  -d 'scope=openid profile email'
{
  "access_token": "SlAV32hkKG",
  "token_type": "Bearer",
  "refresh_token": "8xLOxBtZp8",
  "expires_in": 3600,
  "id_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjFlOWdkazcifQ..."
}