--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
________________________________________________________________________________
[01/May/2023 23:11:00] Validation_user_idm pre : N/A
________________________________________________________________________________
[01/May/2023 23:11:00] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[01/May/2023 23:11:00] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[01/May/2023 23:11:00] 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: 37hVEBAT1K9SZoavQchRjJIp" -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": "KB13P0Fjiz1WvRN6gF0rKoDBCQ4.*AAJTSQACMDIAAlNLABxnejN0aDdrTFBYaDk5RFF4QjJwN0VNSVYxUjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=KB13P0Fjiz1WvRN6gF0rKoDBCQ4.*AAJTSQACMDIAAlNLABxnejN0aDdrTFBYaDk5RFF4QjJwN0VNSVYxUjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682982661.503.342050.34710|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "KB13P0Fjiz1WvRN6gF0rKoDBCQ4.*AAJTSQACMDIAAlNLABxnejN0aDdrTFBYaDk5RFF4QjJwN0VNSVYxUjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Mon, 01 May 2023 23:11:00 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=eOF_4_CC5XYHKFZZlLdZNdrXd90&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': '21323e299e122a535e18356afcde57d5'}
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": "eOF_4_CC5XYHKFZZlLdZNdrXd90"}' "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": "Imgzy3h1F837mSjh9elXE1wdydk",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer Imgzy3h1F837mSjh9elXE1wdydk" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230501223132", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230501223132@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": "109ddecd-407f-4c6a-8263-bf7cb7f3846b",
"_rev": "bf8feea9-1569-4c26-bce9-6395ebe501d1-497",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230501223132@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230501223132",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[01/May/2023 23:11:02] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230501223132 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230501223132" -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": "H4b-XUm8jcs4e_5eN2WHH7lF8o4.*AAJTSQACMDIAAlNLABxuK3YvVmd4Q0ZSQVcxL1VKVUtockducTdzM1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=H4b-XUm8jcs4e_5eN2WHH7lF8o4.*AAJTSQACMDIAAlNLABxuK3YvVmd4Q0ZSQVcxL1VKVUtockducTdzM1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682982663.889.342334.344983|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "H4b-XUm8jcs4e_5eN2WHH7lF8o4.*AAJTSQACMDIAAlNLABxuK3YvVmd4Q0ZSQVcxL1VKVUtockducTdzM1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Mon, 01 May 2023 23:11:03 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=iwL4L6DlIbgtpEwL-gNU5g9t7BY&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': '106f187f6850784956928e82d412e268'}
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": "iwL4L6DlIbgtpEwL-gNU5g9t7BY"}' "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": "Y-jH6sAMC5VOlPn-tig4aeyOhW4",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer Y-jH6sAMC5VOlPn-tig4aeyOhW4" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/109ddecd-407f-4c6a-8263-bf7cb7f3846b"
[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": "109ddecd-407f-4c6a-8263-bf7cb7f3846b",
"_rev": "bf8feea9-1569-4c26-bce9-6395ebe501d1-497",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230501223132@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230501223132",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[01/May/2023 23:11:03] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibTQzcWJhczBlcG5xc3RubTltYWFoNGc0MXUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZ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Um1SWFdua3hiM28wVTFkcGVHSjVVMlpUTnpsaGIxQmlWRmRaU1hFeVRTMXhTa0pvTFRkVFNucHVaa3htYlRCaVdYQTFNSG95ZUcwNFdteGlOa1pYYWxOM1MyOUphR0pyT1ZGWGJVdDVZV1ZSWDBGYWRGUndSekF0TFdSSFZHTk9WRU42Wm5KMVRHbzVTamcyT0hZMGQzWXhObk51Y0RWNGJFOHRaQzFvZVZGM05FTk9jakE1ZVVSMFpGRTNSR2wzVlhwWVQzaGhOMG8wVDBneGEzY3pjWHBvZUc5d1gwbEJRVzVNZDJkbFEyRmpjRmxFVTBSd1JVeFlkbkpRY0ZSWmVHZE9NRzFyTmxVeVFsTmhiRGR1V0VWYU9IQXhUeTFaTG0xd1ZFUmhlbGxpVUV4MFgwUTFhM3BQVFMxeldGRS5uWHpJYlJ4TlpQazhVSllVS0tWWXV1NWRKRUM4WmUwQlJia0lwM0JaTmxzIiwiZXhwIjoxNjgyOTgyOTY1LCJpYXQiOjE2ODI5ODI2NjV9.ajhujT_fu4_sMjhT5GAmO-Z4OpEiej9RHj46TUM58z4",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibTQzcWJhczBlcG5xc3RubTltYWFoNGc0MXUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9p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UTnpsaGIxQmlWRmRaU1hFeVRTMXhTa0pvTFRkVFNucHVaa3htYlRCaVdYQTFNSG95ZUcwNFdteGlOa1pYYWxOM1MyOUphR0pyT1ZGWGJVdDVZV1ZSWDBGYWRGUndSekF0TFdSSFZHTk9WRU42Wm5KMVRHbzVTamcyT0hZMGQzWXhObk51Y0RWNGJFOHRaQzFvZVZGM05FTk9jakE1ZVVSMFpGRTNSR2wzVlhwWVQzaGhOMG8wVDBneGEzY3pjWHBvZUc5d1gwbEJRVzVNZDJkbFEyRmpjRmxFVTBSd1JVeFlkbkpRY0ZSWmVHZE9NRzFyTmxVeVFsTmhiRGR1V0VWYU9IQXhUeTFaTG0xd1ZFUmhlbGxpVUV4MFgwUTFhM3BQVFMxeldGRS5uWHpJYlJ4TlpQazhVSllVS0tWWXV1NWRKRUM4WmUwQlJia0lwM0JaTmxzIiwiZXhwIjoxNjgyOTgyOTY1LCJpYXQiOjE2ODI5ODI2NjV9.ajhujT_fu4_sMjhT5GAmO-Z4OpEiej9RHj46TUM58z4", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230501223132"}], "_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": "jJfGYt1Sr1SWqyrYUWqywlQgl5U.*AAJTSQACMDIAAlNLABxpSHA2WDIxTzVGOUdIRjFvSWs4Q0lURDQyZTQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[01/May/2023 23:11:05] 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: 37hVEBAT1K9SZoavQchRjJIp" -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": "s7zKnxWu5hz-j4NvMPWqtJu8-Kw.*AAJTSQACMDIAAlNLABwrWUtPR1VtTG9LYUh0USt0SS9MTmZMc3ZvS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=s7zKnxWu5hz-j4NvMPWqtJu8-Kw.*AAJTSQACMDIAAlNLABwrWUtPR1VtTG9LYUh0USt0SS9MTmZMc3ZvS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682982666.8.342334.103781|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "s7zKnxWu5hz-j4NvMPWqtJu8-Kw.*AAJTSQACMDIAAlNLABwrWUtPR1VtTG9LYUh0USt0SS9MTmZMc3ZvS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Mon, 01 May 2023 23:11:06 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=xfKxP99H9OJfdf2RrvQ0adJlbig&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': 'a7b286f297912bee50a80eb3883490bd'}
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": "xfKxP99H9OJfdf2RrvQ0adJlbig"}' "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": "OhcVCdEHkgO_iK3Hu69y8u_VsqQ",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer OhcVCdEHkgO_iK3Hu69y8u_VsqQ" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/109ddecd-407f-4c6a-8263-bf7cb7f3846b"
[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": "109ddecd-407f-4c6a-8263-bf7cb7f3846b",
"_rev": "bf8feea9-1569-4c26-bce9-6395ebe501d1-497",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230501223132@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230501223132",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[01/May/2023 23:11:06] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped