--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
________________________________________________________________________________
[03/May/2023 01:53:36] Validation_user_idm pre : N/A
________________________________________________________________________________
[03/May/2023 01:53:36] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[03/May/2023 01:53:36] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[03/May/2023 01:53:36] 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: jsBOkBK6hxGb9ma2Dn62rNY8" -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": "E8j5dA6RK2FbPgU-jYKLAzbX1Io.*AAJTSQACMDIAAlNLABwrRGF4RElxbzFsRFB6T044Y25mcmxPOEJTWEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=E8j5dA6RK2FbPgU-jYKLAzbX1Io.*AAJTSQACMDIAAlNLABwrRGF4RElxbzFsRFB6T044Y25mcmxPOEJTWEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683078818.181.385756.54022|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "E8j5dA6RK2FbPgU-jYKLAzbX1Io.*AAJTSQACMDIAAlNLABwrRGF4RElxbzFsRFB6T044Y25mcmxPOEJTWEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 01:53:37 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=CgpKfF_cY0JYAbuVr8KlcEyk71c&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': '974d87718dcadc189412dd2f3d9b1829'}
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": "CgpKfF_cY0JYAbuVr8KlcEyk71c"}' "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": "At7HvD3hMLUmepIhC_upe0is5j8",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer At7HvD3hMLUmepIhC_upe0is5j8" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230503011449", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230503011449@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": "b454a4a6-6002-47fd-bfad-10a7e1a8b67f",
"_rev": "87fe81ea-cc47-4c70-b3c9-58427f2addf8-475",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503011449@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503011449",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 01:53:38] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230503011449 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230503011449" -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": "SPcNTM3_QGVPStzHhEIE2UPflCs.*AAJTSQACMDIAAlNLABx6T055TWdYU1FhMUp4eHpEN2l6WXFZQlRNckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=SPcNTM3_QGVPStzHhEIE2UPflCs.*AAJTSQACMDIAAlNLABx6T055TWdYU1FhMUp4eHpEN2l6WXFZQlRNckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683078820.112.385560.476972|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "SPcNTM3_QGVPStzHhEIE2UPflCs.*AAJTSQACMDIAAlNLABx6T055TWdYU1FhMUp4eHpEN2l6WXFZQlRNckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 01:53:39 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=yccJi8wHui6dr5iBIzj1I5CITZ4&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': '8c4311a1e2e89f606d895a93cf5ad96b'}
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": "yccJi8wHui6dr5iBIzj1I5CITZ4"}' "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": "QEMNNIbDFmQAjFUIjgHgD0iBq3U",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer QEMNNIbDFmQAjFUIjgHgD0iBq3U" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/b454a4a6-6002-47fd-bfad-10a7e1a8b67f"
[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": "b454a4a6-6002-47fd-bfad-10a7e1a8b67f",
"_rev": "87fe81ea-cc47-4c70-b3c9-58427f2addf8-475",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503011449@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503011449",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 01:53:40] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicTR2OXYzbWg5dTdoMGU0NXVsMmZ2dnBnYmsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZ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zJlbVUxYkVoM1VGQjFSVmxaUTI4d1QxVlJPVkV3UmxoUWFVczFRV0Z3YlVGWlkzSm9aV2hZYVhZMVEyNVBNbWgzVTFCeFlXaHZNRWhsTUVWWE1sUndXSEJqWDFoaWNYSjBjVFIwTjNGUmIyRTBZbXBaWm1VM1JuaEVWM1phV0RkSlVtbHdjMjlPY21wSFEwMDJkRGRhVTFBd1VUUjNVVkJFYURWM0xUaGhZVmsxU1daeWVqVlpVVlpwZFZCTWRqSkZiV2hwYTBZMmFFNVpNSFUwYm05R1VYRm9aVXRxTmt4b1JXVmpUV1p6ZUdWTlNuaGFla2g1U0VoMlRsY3llVWcwY0dkelNqZGZRM2hRWlhKSU5IY3ljbkZqTVhaVVp6aHNNVGhmY1dZeGVsZ3RabE5yTG1WWmJUZEhNamxKUTJWV1kwNTRSM2h5Tm5sbE4zYy55NEJQWmxIRU4wNzJiTU9CWTlNM2tHOXNiM0wxMWlQV2h4eHhVcV9mSFVnIiwiZXhwIjoxNjgzMDc5MTIxLCJpYXQiOjE2ODMwNzg4MjF9.-iEa1B3w4QuouovbSfjx7fjnPkl290XMpyHunfkhUf0",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicTR2OXYzbWg5dTdoMGU0NXVsMmZ2dnBnYmsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSS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lbVUxYkVoM1VGQjFSVmxaUTI4d1QxVlJPVkV3UmxoUWFVczFRV0Z3YlVGWlkzSm9aV2hZYVhZMVEyNVBNbWgzVTFCeFlXaHZNRWhsTUVWWE1sUndXSEJqWDFoaWNYSjBjVFIwTjNGUmIyRTBZbXBaWm1VM1JuaEVWM1phV0RkSlVtbHdjMjlPY21wSFEwMDJkRGRhVTFBd1VUUjNVVkJFYURWM0xUaGhZVmsxU1daeWVqVlpVVlpwZFZCTWRqSkZiV2hwYTBZMmFFNVpNSFUwYm05R1VYRm9aVXRxTmt4b1JXVmpUV1p6ZUdWTlNuaGFla2g1U0VoMlRsY3llVWcwY0dkelNqZGZRM2hRWlhKSU5IY3ljbkZqTVhaVVp6aHNNVGhmY1dZeGVsZ3RabE5yTG1WWmJUZEhNamxKUTJWV1kwNTRSM2h5Tm5sbE4zYy55NEJQWmxIRU4wNzJiTU9CWTlNM2tHOXNiM0wxMWlQV2h4eHhVcV9mSFVnIiwiZXhwIjoxNjgzMDc5MTIxLCJpYXQiOjE2ODMwNzg4MjF9.-iEa1B3w4QuouovbSfjx7fjnPkl290XMpyHunfkhUf0", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230503011449"}], "_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": "YdomX5enFgSy3X7qRb-eW_kys_Q.*AAJTSQACMDIAAlNLABxMZTRrbUJaMzBQU25FYkdFMVZrRVRWNGo0YW89AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[03/May/2023 01:53:41] 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: jsBOkBK6hxGb9ma2Dn62rNY8" -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": "fkBjbgeoYuOn3bYZaMi0wtToj_U.*AAJTSQACMDIAAlNLABxaQlhYaFl4dGNtVDFsOXdxTTFaSjRsQ0sra2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=fkBjbgeoYuOn3bYZaMi0wtToj_U.*AAJTSQACMDIAAlNLABxaQlhYaFl4dGNtVDFsOXdxTTFaSjRsQ0sra2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683078822.725.385701.78512|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "fkBjbgeoYuOn3bYZaMi0wtToj_U.*AAJTSQACMDIAAlNLABxaQlhYaFl4dGNtVDFsOXdxTTFaSjRsQ0sra2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 01:53:41 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=GbmCVauzAtUD8DYf5KamUY3-rPE&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': '6142b20cad8c5af0832050b5188991dc'}
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": "GbmCVauzAtUD8DYf5KamUY3-rPE"}' "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": "bP8OY8CJgduRlQgJeJDj67kzzGA",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer bP8OY8CJgduRlQgJeJDj67kzzGA" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/b454a4a6-6002-47fd-bfad-10a7e1a8b67f"
[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": "b454a4a6-6002-47fd-bfad-10a7e1a8b67f",
"_rev": "87fe81ea-cc47-4c70-b3c9-58427f2addf8-475",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503011449@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503011449",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 01:53:42] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped