curl auth.cactidevs.com/health/
{
"status": "healthy",
"service": "mock_auth"
}
Generate access and refresh JWT tokens
curl -X POST auth.cactidevs.com/authenticate/ \
-H "Content-Type: application/json" \
-d '{
"response": {
"sub": "user-123",
"name": "Test User"
}
}'
{
"success": true, // optional, default: true
"response": { // optional, custom JWT claims
"sub": "user-123",
"name": "Test User",
"role": "admin"
}
}
{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "openid profile email"
}
Exchange a refresh token for a new access token
curl -X POST auth.cactidevs.com/refresh/ \
-H "Content-Type: application/json" \
-d '{
"refresh_token": "eyJhbGciOiJIUzI1NiIs..."
}'
{
"refresh_token": "eyJ..." // required
}
{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"refresh_token": "eyJhbGciOiJIUzI1NiIs...",
"token_type": "Bearer",
"expires_in": 3600,
"scope": "openid profile email"
}