Generate token from Keycloak
POST/auth/token
Token handles the generation of an authentication token using Keycloak credentials. It receives a Fiber context, extracts the necessary configuration from the AuthHandler, and calls the keycloak.GenerateToken function. If token generation fails, it returns an error response with the appropriate status code and error message. On success, it returns the generated token as a JSON response.
Request
Responses
- 200
- 400
- 500
OK
Bad Request
Internal Server Error