--Task--
name: Validation_user_idm
enabled: True
class_name: CheckUserTask
source_name: idm
source_namespace: >default<
target_name: idm
target_namespace: >default<
start: 0
stop: None
timeout: not yet initialized for this Task as timeout was not explicitly defined, see updates bellow
loop: False
interval: None
dependencies: []
wait_for: []
options: {}
group_name: None
Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock
________________________________________________________________________________
[07/Apr/2023 22:45:53] Validation_user_idm pre : N/A
________________________________________________________________________________
[07/Apr/2023 22:45:53] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[07/Apr/2023 22:45:53] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[07/Apr/2023 22:45:53] Validation_user_idm step1 : Make sure we can create a user
________________________________________________________________________________
Authenticate user amadmin via REST
[http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: FrFWiBHPEj1sDF4NuQSKzv7A" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "peQJTplnww7DZVLC85DgkRlrsHQ.*AAJTSQACMDIAAlNLABwvWGVHNzBaMUJraGF3R1dYS1V6WWJBSHUwR009AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=peQJTplnww7DZVLC85DgkRlrsHQ.*AAJTSQACMDIAAlNLABwvWGVHNzBaMUJraGF3R1dYS1V6WWJBSHUwR009AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680907554.987.76788.218692|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "peQJTplnww7DZVLC85DgkRlrsHQ.*AAJTSQACMDIAAlNLABwvWGVHNzBaMUJraGF3R1dYS1V6WWJBSHUwR009AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Fri, 07 Apr 2023 22:45:54 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=SNJA8iqA07wVjA1VfTYodyChzC4&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': 'd8bf7ae3f042e47dcaf971bbceba25cd'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "SNJA8iqA07wVjA1VfTYodyChzC4"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "LbUThLOVLnN9kmVaGxI_hpaLWBY",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer LbUThLOVLnN9kmVaGxI_hpaLWBY" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230407221459", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230407221459@forgerock.com"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user?_action=create"
[http_cmd]: http status code OK
--- status code ---
http status code is 201 (expected [200, 201])
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "143e16e3-1286-415f-8eb4-4dd6e25f701c",
"_rev": "62b0827f-4948-43ef-81de-dcd6abb00e63-4000616",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407221459@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407221459",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 22:45:54] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230407221459 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230407221459" -H "X-OpenAM-Password: T35tr0ck123" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "vtqXEqELJkfsAenH76xmTr0Jkgw.*AAJTSQACMDIAAlNLABxLWGk0ai9RSnR5QWQ0Y2Z0bk1VdmFEcWRrcWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=vtqXEqELJkfsAenH76xmTr0Jkgw.*AAJTSQACMDIAAlNLABxLWGk0ai9RSnR5QWQ0Y2Z0bk1VdmFEcWRrcWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680907555.936.76743.222770|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "vtqXEqELJkfsAenH76xmTr0Jkgw.*AAJTSQACMDIAAlNLABxLWGk0ai9RSnR5QWQ0Y2Z0bk1VdmFEcWRrcWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Fri, 07 Apr 2023 22:45:55 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=pSlTnCI658qPFF4jUN0qt4sPOiU&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': '1e67021d7f9403dfa0c7497214206d11'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "pSlTnCI658qPFF4jUN0qt4sPOiU"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "uplDhPI-nCSRKhqm2-NLIfXBl2Y",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer uplDhPI-nCSRKhqm2-NLIfXBl2Y" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/143e16e3-1286-415f-8eb4-4dd6e25f701c"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "143e16e3-1286-415f-8eb4-4dd6e25f701c",
"_rev": "62b0827f-4948-43ef-81de-dcd6abb00e63-4000616",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407221459@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407221459",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 22:45:55] Validation_user_idm step3 : Make sure user can authenticate himself
________________________________________________________________________________
Anonymous POST to Login service endpoint to obtain appropriate callbacks
Call to Login Tree
[http_cmd]: curl -H "Content-Type: application/json" -H "Accept-API-Version: protocol=2.0,resource=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/authenticate?authIndexType=service&authIndexValue=Login"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (39 lines):
----- output -----
{
"authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYzd1ZGNwdmQ1b2czMXV2bXJja2g4OWNhYWciLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSF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IRlpjSFppTW1GcU5rZzBibXhPWTJOYU1rRkNhbVJKV2xoVGVHSjFVazQ1WVdWbFZHeFhiVnBITUhaQk5YbGxNR054YlZoSVZUSjVZVWwwYkRKd1pIQm5XbXhuYTNKV1ZHSnBXakp4VlZoU1VFRkRRbFZxUkZkV2VUTnVSVVZNYmtSNWRVeEJTRTlMZFZSdlVFOUVRVFZqT1Vrd1VsWnFkR2QwUkV4QmNHZG9PREJLTUdoV2QzVTBkV0ZXWkRGc1lucFRjRjlYTjNOeVNuUnlabTlpWHpOS1pXbHFObWxzYkZOVllWWjNOR0p2YVRsR1ZGTllia0Z5TmswNVdXeGhOalE1Y2tKUFMwSnNkbk5QYVc5a1VXeG5kMjFYYUVVMWVrMU1YMkpRY2xwUU9HUndVbE5qTG1kcFUwNVpNM0ZpYjNwWmNteHdVRTB4Wmt3MmRrRS5VMmNUVHJ6UjViclJsbUNHVk9xRDRHWEc4c24wY0JUY1hqNXZRYVdPZmZnIiwiZXhwIjoxNjgwOTA3ODU2LCJpYXQiOjE2ODA5MDc1NTZ9.ZhEMihaBu1nE8DFIaJi_tGB8wFdxY5v-o3MscTlSGUw",
"callbacks": [
{
"type": "NameCallback",
"output": [
{
"name": "prompt",
"value": "User Name"
}
[...]
"name": "IDToken2",
"value": ""
}
],
"_id": 1
}
],
"header": "Sign In",
"description": "New here? Create an account
Forgot username? Forgot password?"
}
Set value for first two callbacks for login
Call to Login Tree with input values
[http_cmd]: curl -H "Content-Type: application/json" -H "Accept-API-Version: protocol=2.0,resource=1.0" -L -X POST --data '{"authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYzd1ZGNwdmQ1b2czMXV2bXJja2g4OWNhYWciLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCV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XhPWTJOYU1rRkNhbVJKV2xoVGVHSjFVazQ1WVdWbFZHeFhiVnBITUhaQk5YbGxNR054YlZoSVZUSjVZVWwwYkRKd1pIQm5XbXhuYTNKV1ZHSnBXakp4VlZoU1VFRkRRbFZxUkZkV2VUTnVSVVZNYmtSNWRVeEJTRTlMZFZSdlVFOUVRVFZqT1Vrd1VsWnFkR2QwUkV4QmNHZG9PREJLTUdoV2QzVTBkV0ZXWkRGc1lucFRjRjlYTjNOeVNuUnlabTlpWHpOS1pXbHFObWxzYkZOVllWWjNOR0p2YVRsR1ZGTllia0Z5TmswNVdXeGhOalE1Y2tKUFMwSnNkbk5QYVc5a1VXeG5kMjFYYUVVMWVrMU1YMkpRY2xwUU9HUndVbE5qTG1kcFUwNVpNM0ZpYjNwWmNteHdVRTB4Wmt3MmRrRS5VMmNUVHJ6UjViclJsbUNHVk9xRDRHWEc4c24wY0JUY1hqNXZRYVdPZmZnIiwiZXhwIjoxNjgwOTA3ODU2LCJpYXQiOjE2ODA5MDc1NTZ9.ZhEMihaBu1nE8DFIaJi_tGB8wFdxY5v-o3MscTlSGUw", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230407221459"}], "_id": 0}, {"type": "PasswordCallback", "output": [{"name": "prompt", "value": "Password"}], "input": [{"name": "IDToken2", "value": "T35tr0ck123"}], "_id": 1}], "header": "Sign In", "description": "New here? Create an account
Forgot username? Forgot password?"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/realms/root/authenticate?authIndexType=service&authIndexValue=Login"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "mnKjD1aSwJxDgbRR5u29Q9bLTA4.*AAJTSQACMDIAAlNLABxxT01CczBlVzFsajRlZnBqMk1jSEZlTTltc1E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[07/Apr/2023 22:45:57] Validation_user_idm step4 : Make sure we can delete the user
________________________________________________________________________________
Authenticate user amadmin via REST
[http_cmd]: curl -H "X-OpenAM-Username: amadmin" -H "X-OpenAM-Password: FrFWiBHPEj1sDF4NuQSKzv7A" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-cdm.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "yRY579cMP4JK8T6TV-PnOJcbqA0.*AAJTSQACMDIAAlNLABxkNGJ5QzJIS0pDOFJqZEJUTi8zK0NJM2hCajA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
Obtain Oauth2 authz code via REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -X POST --cookie "amlbcookie=01" --cookie "iPlanetDirectoryPro=yRY579cMP4JK8T6TV-PnOJcbqA0.*AAJTSQACMDIAAlNLABxkNGJ5QzJIS0pDOFJqZEJUTi8zK0NJM2hCajA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680907558.864.76788.753292|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "yRY579cMP4JK8T6TV-PnOJcbqA0.*AAJTSQACMDIAAlNLABxkNGJ5QzJIS0pDOFJqZEJUTi8zK0NJM2hCajA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/authorize?client_id=smokeclient&scope=fr:idm:*&redirect_uri=https://fake.com&response_type=code&realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 302 (expected 302)
--- http response ---
{'Date': 'Fri, 07 Apr 2023 22:45:58 GMT', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Cache-Control': 'no-store', 'Location': 'https://fake.com?code=htlA5fgYIUKSGVd1y1XaNE_heRI&iss=https%3A%2F%2Fxlou.iam.xlou-cdm.engineeringpit.com%2Fam%2Foauth2&client_id=smokeclient', 'Pragma': 'no-cache', 'Set-Cookie': 'OAUTH_REQUEST_ATTRIBUTES=DELETED; Expires=Thu, 01 Jan 1970 00:00:00 GMT; Path=/; Secure; HttpOnly; SameSite=none', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-ForgeRock-TransactionId': 'e9e63f125957edfcc3cbd5b6e508a7db'}
Oauth2 get access-token REST
[http_cmd]: curl -H "Content-Type: application/x-www-form-urlencoded" -L -X POST --data '{"grant_type": "authorization_code", "redirect_uri": "https://fake.com", "client_id": "smokeclient", "code": "htlA5fgYIUKSGVd1y1XaNE_heRI"}' "https://xlou.iam.xlou-cdm.engineeringpit.com/am/oauth2/access_token?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"access_token": "8ij_HGX8jJo6cWyCrEsGML7OkhM",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 8ij_HGX8jJo6cWyCrEsGML7OkhM" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/143e16e3-1286-415f-8eb4-4dd6e25f701c"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "143e16e3-1286-415f-8eb4-4dd6e25f701c",
"_rev": "62b0827f-4948-43ef-81de-dcd6abb00e63-4000616",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407221459@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407221459",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 22:45:58] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped