--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
________________________________________________________________________________
[19/Apr/2023 06:41:52] Validation_user_idm pre : N/A
________________________________________________________________________________
[19/Apr/2023 06:41:52] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[19/Apr/2023 06:41:52] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[19/Apr/2023 06:41:52] 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: YOzxI87ommJN5iBXpcIQdyvd" -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": "ygFsag9YZAi67TNvZNY3ACUvvSI.*AAJTSQACMDIAAlNLABxtMUFQOXN6RW5jT2xTZ3owUzhhQkZLUERwd0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=ygFsag9YZAi67TNvZNY3ACUvvSI.*AAJTSQACMDIAAlNLABxtMUFQOXN6RW5jT2xTZ3owUzhhQkZLUERwd0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681886513.357.198874.203060|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "ygFsag9YZAi67TNvZNY3ACUvvSI.*AAJTSQACMDIAAlNLABxtMUFQOXN6RW5jT2xTZ3owUzhhQkZLUERwd0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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, 19 Apr 2023 06:41:53 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=NZTQEJHnlbkdWSyDSffVSHACeJs&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': '8c45c7c7d5f1d06cc58794fc2c87284a'}
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": "NZTQEJHnlbkdWSyDSffVSHACeJs"}' "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": "2MYDM9KAE7PKwNUFnVgByELKBZA",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 2MYDM9KAE7PKwNUFnVgByELKBZA" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230419060323", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230419060323@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": "ad8cd09b-2014-447d-84ff-7789fe4a2034",
"_rev": "513fe436-4c55-4791-a328-44bf47ff27c8-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419060323@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419060323",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 06:41:55] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230419060323 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230419060323" -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": "ZRaZdTzqjpFx-xkHkxmBp2yoTjA.*AAJTSQACMDIAAlNLABx5UHdGL285Y1J5VUNQaXM0QkNycWpKR28zYUU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=ZRaZdTzqjpFx-xkHkxmBp2yoTjA.*AAJTSQACMDIAAlNLABx5UHdGL285Y1J5VUNQaXM0QkNycWpKR28zYUU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681886516.388.198797.658859|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "ZRaZdTzqjpFx-xkHkxmBp2yoTjA.*AAJTSQACMDIAAlNLABx5UHdGL285Y1J5VUNQaXM0QkNycWpKR28zYUU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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, 19 Apr 2023 06:41: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=Ixtbf19brKJAORDlCnNoVNbyWlI&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': 'ea807120f0a5cac8d33e603ad4de566e'}
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": "Ixtbf19brKJAORDlCnNoVNbyWlI"}' "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": "oHvY8dHpghuBxAZEmc6A9CmuWE0",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer oHvY8dHpghuBxAZEmc6A9CmuWE0" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/ad8cd09b-2014-447d-84ff-7789fe4a2034"
[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": "ad8cd09b-2014-447d-84ff-7789fe4a2034",
"_rev": "513fe436-4c55-4791-a328-44bf47ff27c8-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419060323@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419060323",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 06:41:56] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYXZsa3FsZXJoaGhxbnNiY2RoN3M4NjlhY24iLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQ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tdFFUakJhVEd4RFdEYzVPVWhIZEdoc1F6RllUemx5WTBRNVIwOUpaV1Z2ZUVNME1HdGFObEpzTkZwWVJucDBVbFZGUmsxVlVuSkRlR2wyZDI5aVVIWk9SRkpVTVdNMk5sQXlNR3RGVkhSWVRVWkZNMDVHTFhoV1NWOXFZbkJLUlZCYVdtTjNWamwxU0RWUWNHeE9aM0pZUW5oYU5ESnZSWFk0VjBGTWFFNWFVblptZEhCVk1rcEJZMkpaVTA1UFRXOHlTVkEzVURKMFozQnhkSEphTmsxTVJ6VXpjRk5GYzFZMmVFaHFjVmd4UkZCRU5ISjBhWGMwVkRkalpTMUtaMUo1ZUcwME1VSjNkamxwT0VGTGRucFhPRVJYV25OTFZUWnRVRTFLYmpsd1dYVndlV1JuWDAwM0xXRmhNa1ZqTGkxNlQyOTJUMFl3UlhGVk9GcHhia2xWZG13MU1WRS5zaXZLSElXXzM0QWZ0YmNBN2NOLThCM1VlR1g4dGhyWjhuN3FyeGRxRmtnIiwiZXhwIjoxNjgxODg2ODE3LCJpYXQiOjE2ODE4ODY1MTd9.xKcf7gkyUCWnLV-Qhth_MCTAGAwTVq4cZUfgHryOSP4",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYXZsa3FsZXJoaGhxbnNiY2RoN3M4NjlhY24iLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNF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FUakJhVEd4RFdEYzVPVWhIZEdoc1F6RllUemx5WTBRNVIwOUpaV1Z2ZUVNME1HdGFObEpzTkZwWVJucDBVbFZGUmsxVlVuSkRlR2wyZDI5aVVIWk9SRkpVTVdNMk5sQXlNR3RGVkhSWVRVWkZNMDVHTFhoV1NWOXFZbkJLUlZCYVdtTjNWamwxU0RWUWNHeE9aM0pZUW5oYU5ESnZSWFk0VjBGTWFFNWFVblptZEhCVk1rcEJZMkpaVTA1UFRXOHlTVkEzVURKMFozQnhkSEphTmsxTVJ6VXpjRk5GYzFZMmVFaHFjVmd4UkZCRU5ISjBhWGMwVkRkalpTMUtaMUo1ZUcwME1VSjNkamxwT0VGTGRucFhPRVJYV25OTFZUWnRVRTFLYmpsd1dYVndlV1JuWDAwM0xXRmhNa1ZqTGkxNlQyOTJUMFl3UlhGVk9GcHhia2xWZG13MU1WRS5zaXZLSElXXzM0QWZ0YmNBN2NOLThCM1VlR1g4dGhyWjhuN3FyeGRxRmtnIiwiZXhwIjoxNjgxODg2ODE3LCJpYXQiOjE2ODE4ODY1MTd9.xKcf7gkyUCWnLV-Qhth_MCTAGAwTVq4cZUfgHryOSP4", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230419060323"}], "_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": "HFFdRzzou2tObaDAdi5dHNw8GFQ.*AAJTSQACMDIAAlNLABxZY3pIM2pvNDk3T3kySzJjUHVZVXRlVjRzNlU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[19/Apr/2023 06:41: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: YOzxI87ommJN5iBXpcIQdyvd" -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": "y9wUOOunk93fZROPhjOvZrVF_B4.*AAJTSQACMDIAAlNLABw2bGhOU1dtaURQUFcwbFJDMms1V2haKzNkTVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=y9wUOOunk93fZROPhjOvZrVF_B4.*AAJTSQACMDIAAlNLABw2bGhOU1dtaURQUFcwbFJDMms1V2haKzNkTVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681886519.135.198923.169199|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "y9wUOOunk93fZROPhjOvZrVF_B4.*AAJTSQACMDIAAlNLABw2bGhOU1dtaURQUFcwbFJDMms1V2haKzNkTVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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, 19 Apr 2023 06:41: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=20ypD6xenhhCnl8z0L5AVzJ_uZE&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': '8c87cdcbc8c8e5eabb84f49ddbd67070'}
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": "20ypD6xenhhCnl8z0L5AVzJ_uZE"}' "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": "wJ1gxouMbSdKeLptg1w_MBDq-Yc",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer wJ1gxouMbSdKeLptg1w_MBDq-Yc" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/ad8cd09b-2014-447d-84ff-7789fe4a2034"
[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": "ad8cd09b-2014-447d-84ff-7789fe4a2034",
"_rev": "513fe436-4c55-4791-a328-44bf47ff27c8-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419060323@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419060323",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 06:41:58] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped