--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 12:48:01] Validation_user_idm pre : N/A
________________________________________________________________________________
[19/Apr/2023 12:48:01] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[19/Apr/2023 12:48:01] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[19/Apr/2023 12:48:01] 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: JIGzQMUhxyKKvwnyazAsHPEz" -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": "aC_XwG8TdKbWSa5w6iYpTEthHZw.*AAJTSQACMDIAAlNLABxmUmt0Z3BPaXI0TUprek9ZVG12VWhaMVovd2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=aC_XwG8TdKbWSa5w6iYpTEthHZw.*AAJTSQACMDIAAlNLABxmUmt0Z3BPaXI0TUprek9ZVG12VWhaMVovd2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681908483.232.213321.754396|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "aC_XwG8TdKbWSa5w6iYpTEthHZw.*AAJTSQACMDIAAlNLABxmUmt0Z3BPaXI0TUprek9ZVG12VWhaMVovd2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 12:48:02 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=qJ5F7-8n5JwatA_VjfHxFN4ySQU&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': '6fbee012a0b95fb7f14443d5381f9f65'}
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": "qJ5F7-8n5JwatA_VjfHxFN4ySQU"}' "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": "cn6hawCpJOXnnr-dgeb21PiCnDs",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer cn6hawCpJOXnnr-dgeb21PiCnDs" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230419121003", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230419121003@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": "6c081d22-8e59-43f4-943a-29fe886e50a3",
"_rev": "0cae6d66-8f10-4a4e-9c5d-0f86d7925e5e-472",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419121003@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419121003",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 12:48:03] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230419121003 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230419121003" -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": "0FPTTY-YirlnyhsC0wRDdRhWdDs.*AAJTSQACMDIAAlNLABxjclNUOERsUmV0OHhDTUVGODFLQVJ3Q0pmSjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=0FPTTY-YirlnyhsC0wRDdRhWdDs.*AAJTSQACMDIAAlNLABxjclNUOERsUmV0OHhDTUVGODFLQVJ3Q0pmSjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681908485.151.213013.47492|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "0FPTTY-YirlnyhsC0wRDdRhWdDs.*AAJTSQACMDIAAlNLABxjclNUOERsUmV0OHhDTUVGODFLQVJ3Q0pmSjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 12:48:04 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=LmpOIoP5mvvFEIWcvbaP64r_K_M&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': '9370eaee1afec9d67bdebbadef7f43a6'}
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": "LmpOIoP5mvvFEIWcvbaP64r_K_M"}' "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": "aS6pIKH4v_ovubRbocRbVlvHprw",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer aS6pIKH4v_ovubRbocRbVlvHprw" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/6c081d22-8e59-43f4-943a-29fe886e50a3"
[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": "6c081d22-8e59-43f4-943a-29fe886e50a3",
"_rev": "0cae6d66-8f10-4a4e-9c5d-0f86d7925e5e-472",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419121003@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419121003",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 12:48:05] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiazljMmFrOGVxaDJiaXRxNGtycDU5aTBlcWQiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI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m1wU04zbGxlRVJVT0ZWSVpEaFFjek50VDNneVdGOTBNVmxEVDNkUlNGRTNVMEpoU0Zkd1JrcEJMWFV5TjNKdVZYcHdTRTVVVTNCVWVHNVJRemcxU1ZSblJrSTRNblpZUkZjeU5HOVVSMU5FT0RWMVdrdFRRVm8xT1dKT09VeDFTRmRmU0c1VGQxWjNVVVExUjBwbVVXOW9TbWszT0hnM2VubEtOR3M0YzFSaGF6aE9NVGw1Y2paNVZIbE5NMWhKVlhjd2RFRkVlaTEzYmxKWk9FRmxVRzFtU0VKT2RrcGtTRkZMYlRGamNVSkdaVWhoVmtsSVZEWXphVVZYZHpab01WcEdVeTF4TW5oM1dXbGhiakYwTm1Gc1NpMDFaSFF3ZEMxbGFuTXhTMUJxUVdONGEzWXRUa1ZqTG5KNFZqVnpUVGhhVVZOemRYUkNVV1J0V0RNMU0xRS43emxoLWd0Vl93ME9PUmdhT19SVGszbmxoNDFpTUNqXzRmaHcwU3daSlJZIiwiZXhwIjoxNjgxOTA4Nzg2LCJpYXQiOjE2ODE5MDg0ODZ9.xGNNRQkdfpU2WT9h8_rHRdhHMKwin5LIuZRSSpOPavg",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiazljMmFrOGVxaDJiaXRxNGtycDU5aTBlcWQiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZ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pEaFFjek50VDNneVdGOTBNVmxEVDNkUlNGRTNVMEpoU0Zkd1JrcEJMWFV5TjNKdVZYcHdTRTVVVTNCVWVHNVJRemcxU1ZSblJrSTRNblpZUkZjeU5HOVVSMU5FT0RWMVdrdFRRVm8xT1dKT09VeDFTRmRmU0c1VGQxWjNVVVExUjBwbVVXOW9TbWszT0hnM2VubEtOR3M0YzFSaGF6aE9NVGw1Y2paNVZIbE5NMWhKVlhjd2RFRkVlaTEzYmxKWk9FRmxVRzFtU0VKT2RrcGtTRkZMYlRGamNVSkdaVWhoVmtsSVZEWXphVVZYZHpab01WcEdVeTF4TW5oM1dXbGhiakYwTm1Gc1NpMDFaSFF3ZEMxbGFuTXhTMUJxUVdONGEzWXRUa1ZqTG5KNFZqVnpUVGhhVVZOemRYUkNVV1J0V0RNMU0xRS43emxoLWd0Vl93ME9PUmdhT19SVGszbmxoNDFpTUNqXzRmaHcwU3daSlJZIiwiZXhwIjoxNjgxOTA4Nzg2LCJpYXQiOjE2ODE5MDg0ODZ9.xGNNRQkdfpU2WT9h8_rHRdhHMKwin5LIuZRSSpOPavg", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230419121003"}], "_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": "BZsuAC9FJ_XZpUKihjAtHJOo2L0.*AAJTSQACMDIAAlNLABxNcUtvd2VuVk8vWlphZDFjTmdjaVNyb3FKeGs9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[19/Apr/2023 12:48:07] 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: JIGzQMUhxyKKvwnyazAsHPEz" -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": "tto-ERCA-_0sxdvFBMIB03uHfno.*AAJTSQACMDIAAlNLABxIUlpqL1JqRWt5MjJPaHF6U0V2bmtJc0JrOHM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=tto-ERCA-_0sxdvFBMIB03uHfno.*AAJTSQACMDIAAlNLABxIUlpqL1JqRWt5MjJPaHF6U0V2bmtJc0JrOHM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681908488.86.213321.392114|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "tto-ERCA-_0sxdvFBMIB03uHfno.*AAJTSQACMDIAAlNLABxIUlpqL1JqRWt5MjJPaHF6U0V2bmtJc0JrOHM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 12:48:08 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=FsPMBM83ocNyYKGS0NI9emHzBpg&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': '441a42d0ad7539512e83971d1dce2287'}
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": "FsPMBM83ocNyYKGS0NI9emHzBpg"}' "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": "AN_CF4zKvfqxG2kP9Wz6pzyUmv0",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer AN_CF4zKvfqxG2kP9Wz6pzyUmv0" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/6c081d22-8e59-43f4-943a-29fe886e50a3"
[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": "6c081d22-8e59-43f4-943a-29fe886e50a3",
"_rev": "0cae6d66-8f10-4a4e-9c5d-0f86d7925e5e-472",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419121003@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419121003",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 12:48:08] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped