--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
________________________________________________________________________________
[02/May/2023 23:50:28] Validation_user_idm pre : N/A
________________________________________________________________________________
[02/May/2023 23:50:28] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[02/May/2023 23:50:28] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[02/May/2023 23:50:28] 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: pCsRxetHp5aqJb7NaWzHwXvC" -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": "rpB9nWXodWdCXZQ9RC9mNjiSF7I.*AAJTSQACMDIAAlNLABxySmNiNzM5M2VORFpTbXFDLzlpOThEdUJvaFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=rpB9nWXodWdCXZQ9RC9mNjiSF7I.*AAJTSQACMDIAAlNLABxySmNiNzM5M2VORFpTbXFDLzlpOThEdUJvaFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683071430.204.380775.212299|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "rpB9nWXodWdCXZQ9RC9mNjiSF7I.*AAJTSQACMDIAAlNLABxySmNiNzM5M2VORFpTbXFDLzlpOThEdUJvaFU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 02 May 2023 23:50:30 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=pWNqWRNHfKhtqm59CS5yGflXnbo&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': '5e163fface7ee5a1c35eb138148c361c'}
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": "pWNqWRNHfKhtqm59CS5yGflXnbo"}' "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": "4Uy0mqkdcrB0l0IarYLPjdoafzE",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 4Uy0mqkdcrB0l0IarYLPjdoafzE" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230502231145", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230502231145@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": "a53caca5-192a-40fb-b0e0-ed4345100837",
"_rev": "f76a70a5-cbd4-46b0-80f0-7adb09a7b142-473",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502231145@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502231145",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 23:50:31] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230502231145 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230502231145" -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": "aZqgXAk3DLEGmj52pCGVJj4hpwM.*AAJTSQACMDIAAlNLABxncUdJZzR4MnFMbENRU0JWWE9tbVJqYWpBK0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=aZqgXAk3DLEGmj52pCGVJj4hpwM.*AAJTSQACMDIAAlNLABxncUdJZzR4MnFMbENRU0JWWE9tbVJqYWpBK0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683071432.704.381142.275001|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "aZqgXAk3DLEGmj52pCGVJj4hpwM.*AAJTSQACMDIAAlNLABxncUdJZzR4MnFMbENRU0JWWE9tbVJqYWpBK0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 02 May 2023 23:50:32 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=NAbcA5Y0I2mLgObw-yUtqBA0jMk&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': '551a1bea2bc9144051e797dc721003c3'}
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": "NAbcA5Y0I2mLgObw-yUtqBA0jMk"}' "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": "9rnN_5jFuGQxfFd0lTq7UXlXxms",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 9rnN_5jFuGQxfFd0lTq7UXlXxms" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/a53caca5-192a-40fb-b0e0-ed4345100837"
[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": "a53caca5-192a-40fb-b0e0-ed4345100837",
"_rev": "f76a70a5-cbd4-46b0-80f0-7adb09a7b142-473",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502231145@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502231145",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 23:50:32] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia2dncjcxZjY5ZWVucDFjcTl2aW1oZDNsNDQiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSU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a1YwZEViRVV6TWtnMk9HWklhVzVOZDBFME0xcHpTV0Z1Y1VkV2QwTjZUWHBPZGxKdVRWQkdUVEY2YkVabU5HVXlYMjFCVXpBdGRFdGhkRVZPVkRGTmVIQnpSMjQ0YkhseWVrMWhiMjlaTVhoNlVITnJPWFJ4VkZKRWNUZHBSWFJhZDBjdFJsSkZMVE5LUWpabVZGOHRTM1ZyY1ZoamJYRlZYMGhLYkRoeFdsUkhRVzluZFRnelYyUlFUR3Q1YVY5amJEQTNNeTEzTWtaUlZXdDRPVkp3VUVKMlUxbzJNV3Q1Y1dKNllsWlpNSFJQTFdKak5YVjRUVUZOU0Raa2NGaEthalpIVURaQ1ZIQlpTWGhJU0RoaU5YUlZiUzFKTGpjMGRXTXdVWEExYkdVeWR6ZERSVFl5YTFkb1JXYy45VmVKa1k1RFVnUlduZjlOalI1YVVYcGZnVFFpeWtXSU5DYkhFM3NOalBJIiwiZXhwIjoxNjgzMDcxNzMzLCJpYXQiOjE2ODMwNzE0MzN9.V5_XcAKZJ_fVZEY4vCjM6KIBVIQG4J2Ml7LpMQsmaYQ",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia2dncjcxZjY5ZWVucDFjcTl2aW1oZDNsNDQiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVh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hVzVOZDBFME0xcHpTV0Z1Y1VkV2QwTjZUWHBPZGxKdVRWQkdUVEY2YkVabU5HVXlYMjFCVXpBdGRFdGhkRVZPVkRGTmVIQnpSMjQ0YkhseWVrMWhiMjlaTVhoNlVITnJPWFJ4VkZKRWNUZHBSWFJhZDBjdFJsSkZMVE5LUWpabVZGOHRTM1ZyY1ZoamJYRlZYMGhLYkRoeFdsUkhRVzluZFRnelYyUlFUR3Q1YVY5amJEQTNNeTEzTWtaUlZXdDRPVkp3VUVKMlUxbzJNV3Q1Y1dKNllsWlpNSFJQTFdKak5YVjRUVUZOU0Raa2NGaEthalpIVURaQ1ZIQlpTWGhJU0RoaU5YUlZiUzFKTGpjMGRXTXdVWEExYkdVeWR6ZERSVFl5YTFkb1JXYy45VmVKa1k1RFVnUlduZjlOalI1YVVYcGZnVFFpeWtXSU5DYkhFM3NOalBJIiwiZXhwIjoxNjgzMDcxNzMzLCJpYXQiOjE2ODMwNzE0MzN9.V5_XcAKZJ_fVZEY4vCjM6KIBVIQG4J2Ml7LpMQsmaYQ", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230502231145"}], "_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": "Xe6WDv0hqLde-kFSd55DGlx-llg.*AAJTSQACMDIAAlNLABxEMFo2bWZMTlluMFFadFFZTC9GZEVka1RZVGs9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[02/May/2023 23:50:35] 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: pCsRxetHp5aqJb7NaWzHwXvC" -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": "uPlZkjcHNl8tW6gDho9Q5MJ8SRw.*AAJTSQACMDIAAlNLABxxc2R3SFI3eWcvWVJZUnczNG9qMTlOSWRycnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=uPlZkjcHNl8tW6gDho9Q5MJ8SRw.*AAJTSQACMDIAAlNLABxxc2R3SFI3eWcvWVJZUnczNG9qMTlOSWRycnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683071436.237.380775.202805|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "uPlZkjcHNl8tW6gDho9Q5MJ8SRw.*AAJTSQACMDIAAlNLABxxc2R3SFI3eWcvWVJZUnczNG9qMTlOSWRycnM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 02 May 2023 23:50:35 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=njrB8yP_DTNEApunQzksNaZokqk&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': '5d6dff539643281d9f3d17b40e71913d'}
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": "njrB8yP_DTNEApunQzksNaZokqk"}' "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": "tbNRXXsYaEvNAAyuToctCS3CSCM",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer tbNRXXsYaEvNAAyuToctCS3CSCM" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/a53caca5-192a-40fb-b0e0-ed4345100837"
[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": "a53caca5-192a-40fb-b0e0-ed4345100837",
"_rev": "f76a70a5-cbd4-46b0-80f0-7adb09a7b142-473",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502231145@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502231145",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 23:50:36] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped