-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue While Creating User in Step 5 of Sunbird ED Setup - keycloak_local_setup.md #1257
Comments
Hi @Ganesh-Protean, could you use the API mentioned in the screenshot in Step 5? I'm sharing the curl for your reference: [Link to GitHub repository](https://github.com/Sunbird-Lern/userorg-service/blob/master/keycloak_local_setup/keycloak_local_setup.md#steps-to-create-default-system-admin-user-and-other-tenant-users) curl --location 'localhost:9000/v1/user/create' \
--header 'Content-Type: application/json' \
--header 'x-authenticated-user-token: #access_token value from the above CURL response' \
--data-raw '{
"request": {
"firstName": "Test",
"lastName": "User",
"channel": "sunbird",
"userName": "testuser",
"email": "testuser@test.com",
"emailVerified": true,
"password": "Test@123",
"userType": "teacher"
}
}' |
We have tried using the revised API endpoint but still getting the same error. Please check & help us to resolve the same as soon as possible. |
Hi @Ganesh-Protean Could you please provide more context so we can debug the issue more efficiently? This error typically occurs when the organization and location are not properly created, as these are required inputs beforehand. To assist us in resolving the issue as quickly as possible, could you kindly provide the following:
|
Hi @GayathriSrividya , We have resolved the issue related to creating the user in the database. However, as per the documentation, the user is also supposed to be registered in Keycloak, but that is not happening. The response we're getting is as follows: { "id": "api.ssouser.create", "ver": "v1", "ts": "2025-03-10 09:50:25:725+0530", "params": { "resmsgid": "3432852b-346a-4536-a6ac-74b85b042e8c", "msgid": "3432852b-346a-4536-a6ac-74b85b042e8c", "err": null, "status": "SUCCESS", "errmsg": null }, "responseCode": "OK", "result": { "response": "SUCCESS", "errors": [] } } Let us know if you have any insights on why Keycloak registration is not being triggered. We are currently blocked and unable to move forward due to the issue could we schedule a quick call to review and address the issue? |
@Ganesh-Protean |
@HarishGangula As mentioned earlier also we are getting success response, no error logs are there. |
@Ganesh-Protean We need answers to the question asked here and the details asked here, without which we won't be able to proceed further on this issue. Provide the proper details to check the issue further |
@HarishGangula
|
@Ganesh-Protean, I also suggest rebuilding the provider JAR located at keycloak-email-phone-authenticator-1.0-SNAPSHOT.jar. |
@Ganesh-Protean, I am also unable to access the URL: https://github.com/Protean-Sunbird-Morocco/Sunbird-Morocco-Sandbox.git. Could you please clarify the Keycloak environment, as discussed yesterday and mentioned here: #1257 (comment)? |
5.Steps to create default system admin user and other tenant users
We have successfully completed the first four steps of setting up Sunbird ED, but we are encountering an issue when trying to create a user in Step 5.
Request payload:
The text was updated successfully, but these errors were encountered: