Task #17060
Added by Sachin Divekar over 1 year ago.
Updated about 1 year ago.
Description
The web service should accept user details as input and create a corresponding user in Keycloak.
- Use Alya to create the web service.
- Use gocloak to create a user in Keycloak based on the input user details.
- Handle any errors that may occur during the user creation process and returning the error response.
- Test the web service to ensure it creates users correctly in Keycloak.
user-create web service
Files
- Assignee set to Tushar Bhingare
- Status changed from New to In Progress
- Created a web service using Alya.
- Used gocloak to create a user in Keycloak based on the input user details.
- Handled any errors that may occur during the user creation process and returned the error response.
- Obtaining the token from the bearer token
- Added middleware for token authentication
- Storing the token in Redis.
- performed testing on the web service to verify its capability to successfully create users.

WSC: User creation
- created web service using updated Alya.
- took appconfig values from config.json by using alya/config pkg
- Completed logging by using alya/logger
- performed authentication and created router using alya/router
- Used alya/service to create user handler and added gocloak client to service dependencies
- Extracted token from the context header.
- Used gocloak to create a user in Keycloak based on the input user details.
- Status changed from In Progress to Closed
Also available in: Atom
PDF