User are not added to the role
Seems like user creation doesn't reliably work. Users are created and it seems like keycloak is sending the correct roles, but users role is not changed in RC
ebug: 2022-07-11T10:57:01.057Z Anrufer: anonymous OR constructor
[
"Users/:id's put is being executed...",
{
"method": "put",
"headers": {
"accept": "application/scim+json, application/json",
"authorization": "Basic aE5oOHhQdzRoNW0zYjlZQ2U6N1JTZEVFdnlia1d1dzBNdm5HdkV5dDhqLU5mMkI4b0FJVVpVY2JxeHA2Rw==",
"content-type": "application/json",
"content-length": "737",
"host": "172.18.0.5:3000",
"connection": "Keep-Alive",
"user-agent": "Apache-HttpClient/4.5.13 (Java/11.0.14)"
},
"query": {},
"params": {
"id": "tzDwjGtzsaTDhAQd9"
},
"content": {
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "tzDwjGtzsaTDhAQd9",
"externalId": "a39476df-a32e-495e-99f6-6237bf79a0e5",
"meta": {
"resourceType": null,
"created": null,
"lastModified": null,
"location": "Users/tzDwjGtzsaTDhAQd9",
"version": null
},
"userName": "test_group",
"name": null,
"displayName": "test group",
"nickName": null,
"profileUrl": null,
"title": null,
"userType": null,
"preferredLanguage": null,
"locale": null,
"timezone": null,
"active": true,
"password": null,
"emails": [
{
"value": "test_group@test.org",
"display": null,
"type": null,
"primary": true
}
],
"phoneNumbers": null,
"ims": null,
"photos": null,
"addresses": null,
"groups": null,
"entitlements": null,
"roles": [
{
"value": "admin",
"display": null,
"type": null,
"primary": null
}
],
"x509Certificates": null
}
}
]
debug: 2022-07-11T10:57:01.058Z Anrufer: put
[
"SCIM Request PUT /Users/:id",
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"id": "tzDwjGtzsaTDhAQd9",
"externalId": "a39476df-a32e-495e-99f6-6237bf79a0e5",
"meta": {
"resourceType": null,
"created": null,
"lastModified": null,
"location": "Users/tzDwjGtzsaTDhAQd9",
"version": null
},
"userName": "test_group",
"name": null,
"displayName": "test group",
"nickName": null,
"profileUrl": null,
"title": null,
"userType": null,
"preferredLanguage": null,
"locale": null,
"timezone": null,
"active": true,
"password": null,
"emails": [
{
"value": "test_group@test.org",
"display": null,
"type": null,
"primary": true
}
],
"phoneNumbers": null,
"ims": null,
"photos": null,
"addresses": null,
"groups": null,
"entitlements": null,
"roles": [
{
"value": "admin",
"display": null,
"type": null,
"primary": null
}
],
"x509Certificates": null
}
]
debug: 2022-07-11T10:57:01.058Z Anrufer: request -> request
[
"API Request roles.list",
null
]
debug: 2022-07-11T10:57:01.073Z Anrufer: request -> request
[
"API Response",
{
"roles": [
{
"_id": "admin",
"scope": "Users",
"description": "Admin",
"mandatory2fa": false,
"name": "admin",
"protected": true
},
{
"_id": "moderator",
"scope": "Subscriptions",
"description": "Moderator",
"mandatory2fa": false,
"name": "moderator",
"protected": true
},
{
"_id": "leader",
"scope": "Subscriptions",
"description": "Leader",
"mandatory2fa": false,
"name": "leader",
"protected": true
},
{
"_id": "owner",
"scope": "Subscriptions",
"description": "Owner",
"mandatory2fa": false,
"name": "owner",
"protected": true
},
{
"_id": "user",
"scope": "Users",
"description": "",
"mandatory2fa": false,
"name": "user",
"protected": true
},
{
"_id": "bot",
"scope": "Users",
"description": "",
"mandatory2fa": false,
"name": "bot",
"protected": true
},
{
"_id": "app",
"scope": "Users",
"description": "",
"mandatory2fa": false,
"name": "app",
"protected": true
},
{
"_id": "guest",
"scope": "Users",
"description": "",
"mandatory2fa": false,
"name": "guest",
"protected": true
},
{
"_id": "anonymous",
"scope": "Users",
"description": "",
"mandatory2fa": false,
"name": "anonymous",
"protected": true
},
{
"_id": "livechat-agent",
"scope": "Users",
"description": "Livechat Agent",
"mandatory2fa": false,
"name": "livechat-agent",
"protected": true
},
{
"_id": "livechat-manager",
"scope": "Users",
"description": "Livechat Manager",
"mandatory2fa": false,
"name": "livechat-manager",
"protected": true
}
],
"success": true
}
]
debug: 2022-07-11T10:57:01.073Z Anrufer: request -> request
[
"API Request users.update",
{
"userId": "tzDwjGtzsaTDhAQd9",
"data": {
"email": "test_group@test.org",
"name": "test group",
"username": "test_group",
"active": true,
"verified": true,
"roles": [
"admin",
"user"
],
"customFields": {
"scimExternalId": "a39476df-a32e-495e-99f6-6237bf79a0e5"
}
}
}
]
debug: 2022-07-11T10:57:01.081Z Anrufer: request -> request
[
"API Response",
{
"success": false,
"error": "TOTP Required [totp-required]",
"errorType": "totp-required",
"details": {
"method": "password",
"codeGenerated": false,
"availableMethods": []
}
}
]
error: 2022-07-11T10:57:01.081Z Anrufer: put
[
"{\"stack\":\"Error: TOTP Required [totp-required]\\n at UserEndpoint.handleRcError [as handleError] (evalmachine.<anonymous>:19:15)\\n at UserEndpoint._put (evalmachine.<anonymous>:47:14)\\n at runMicrotasks (<anonymous>)\\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\\n at UserEndpoint.put (evalmachine.<anonymous>:68:34)\",\"message\":\"TOTP Required [totp-required]\"}"
]
debug: 2022-07-11T10:57:01.081Z Anrufer: anonymous OR constructor
[
"Users/:id's put was successfully executed."
]