Authenticate or Create User: /auth/secret (POST)
Purpose:
This endpoint is used to authenticate a client based on a Client-Secret header and provide a JWT token if authentication is successful.
Input:
- Headers:
- Client-Secret: A required header to authenticate the request.
- JSON Body:
- username: (String) The username of the user.
- display_name: (String) The display name of the user.
- slug: (String) The slug/id of an organization.
Output (200):
{
"token": "your_jwt_token"
}