--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
________________________________________________________________________________
[21/Apr/2023 22:34:41] Validation_user_idm pre : N/A
________________________________________________________________________________
[21/Apr/2023 22:34:41] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[21/Apr/2023 22:34:41] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[21/Apr/2023 22:34:41] 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: cHvfJMt9WDORTvuWFvSoaOHH" -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": "Zg0NNGYsn90TT2TJWHuBtoPyJ0E.*AAJTSQACMDIAAlNLABxOU2JnVkJnMUVHclBHdE00ZnRBazhLWERqSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=Zg0NNGYsn90TT2TJWHuBtoPyJ0E.*AAJTSQACMDIAAlNLABxOU2JnVkJnMUVHclBHdE00ZnRBazhLWERqSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682116482.41.277285.8717|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "Zg0NNGYsn90TT2TJWHuBtoPyJ0E.*AAJTSQACMDIAAlNLABxOU2JnVkJnMUVHclBHdE00ZnRBazhLWERqSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 21 Apr 2023 22:34: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=gUJGaD5fOjuHlNbm9jE2xsVlxPA&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': '01ad27454f5cc1d059bdb39773ddba69'}
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": "gUJGaD5fOjuHlNbm9jE2xsVlxPA"}' "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": "tuMpSYkxDTg2cjtsY1gEu1Dcwpw",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer tuMpSYkxDTg2cjtsY1gEu1Dcwpw" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230421215612", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230421215612@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": "463c3780-fe2c-4b95-a42c-668b32312f62",
"_rev": "94521e10-b14d-4e81-aaa3-25f86515e783-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230421215612@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230421215612",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[21/Apr/2023 22:34:43] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230421215612 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230421215612" -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": "fXAGa2Qks1I2zSj1-eV62NKnhbA.*AAJTSQACMDIAAlNLABx4NXZ6dlU0b3NmbUFyMkFidGdXUE9GUWxLckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=fXAGa2Qks1I2zSj1-eV62NKnhbA.*AAJTSQACMDIAAlNLABx4NXZ6dlU0b3NmbUFyMkFidGdXUE9GUWxLckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682116484.332.277231.609604|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "fXAGa2Qks1I2zSj1-eV62NKnhbA.*AAJTSQACMDIAAlNLABx4NXZ6dlU0b3NmbUFyMkFidGdXUE9GUWxLckE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 21 Apr 2023 22:34:43 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=DmFOi291DjIDOhWqVCXrxYaIW3k&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': 'f3b8b414ec0491f467d660d525e3052e'}
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": "DmFOi291DjIDOhWqVCXrxYaIW3k"}' "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": "O0ao5ZwXIX6cMvWOe2J4_Oyu_sY",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer O0ao5ZwXIX6cMvWOe2J4_Oyu_sY" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/463c3780-fe2c-4b95-a42c-668b32312f62"
[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": "463c3780-fe2c-4b95-a42c-668b32312f62",
"_rev": "94521e10-b14d-4e81-aaa3-25f86515e783-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230421215612@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230421215612",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[21/Apr/2023 22:34:44] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiZzJkbWVkYW84aTZyZTI3N3AxZG5zY2M1cHUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1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lRkSWVsUTRjamhyTVRKbWJtdHVNVkU0VGtWc1JXZFRkVFpUWmxOVVFqVmpSV0l5VldadWFsY3dWV05XVWxOeE1FVnRValYxVm10d1FscFBVSFkyUWxaM2N6aHNiVTAzTVZSYVdYUjRjbE5vYkdoVmRYUkdPR3d0Y2xnNFJtd3hiR3ByYlVReWRuVlpSSFp1UlVZNVRISkhkRWMzVm5CVFYyVmhhMFE1WDI1bFlsUjBUV3N6TXpaQ2NYZDNlVlZGUWpCNFZXTmxTSGxxZUdWVlFXdzJSM1YzTkVWbGJVZExlV0ZUZVdJNFJ6ZzVRbVJOU0ZOS05VTlNXRWRuVEhReExYSTRlVXgwUWs1UVUycDNjSEZKU0RaRmQxTjZhRFJZWnpkeWNFVmlUbmt4YmxrMmRGSnlOMUozTGxkRWNFMXdRbnB4ZWsxSGJHaHNNa1kzZVRoek1XYy5yYmRBR05GczdKR19IeFFWdllRaDNWLUhEZUJreVp3dmRWQWVLNF9rYUlvIiwiZXhwIjoxNjgyMTE2Nzg1LCJpYXQiOjE2ODIxMTY0ODV9.FL6AoRzVRZCpc1i3-Uv_iYlRBDZF6icKFiMkVvNpoPM",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiZzJkbWVkYW84aTZyZTI3N3AxZG5zY2M1cHUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRj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VRKbWJtdHVNVkU0VGtWc1JXZFRkVFpUWmxOVVFqVmpSV0l5VldadWFsY3dWV05XVWxOeE1FVnRValYxVm10d1FscFBVSFkyUWxaM2N6aHNiVTAzTVZSYVdYUjRjbE5vYkdoVmRYUkdPR3d0Y2xnNFJtd3hiR3ByYlVReWRuVlpSSFp1UlVZNVRISkhkRWMzVm5CVFYyVmhhMFE1WDI1bFlsUjBUV3N6TXpaQ2NYZDNlVlZGUWpCNFZXTmxTSGxxZUdWVlFXdzJSM1YzTkVWbGJVZExlV0ZUZVdJNFJ6ZzVRbVJOU0ZOS05VTlNXRWRuVEhReExYSTRlVXgwUWs1UVUycDNjSEZKU0RaRmQxTjZhRFJZWnpkeWNFVmlUbmt4YmxrMmRGSnlOMUozTGxkRWNFMXdRbnB4ZWsxSGJHaHNNa1kzZVRoek1XYy5yYmRBR05GczdKR19IeFFWdllRaDNWLUhEZUJreVp3dmRWQWVLNF9rYUlvIiwiZXhwIjoxNjgyMTE2Nzg1LCJpYXQiOjE2ODIxMTY0ODV9.FL6AoRzVRZCpc1i3-Uv_iYlRBDZF6icKFiMkVvNpoPM", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230421215612"}], "_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": "bal57X9ZlxxbZ4x0dK7LYTs3Ats.*AAJTSQACMDIAAlNLABxXUUtOdjhFMm8xbHNReEh3MWZ1UXQxVitqWVE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[21/Apr/2023 22:34:46] 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: cHvfJMt9WDORTvuWFvSoaOHH" -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": "B6MCS6oSkjBE5w3_wkgRZQpnEsI.*AAJTSQACMDIAAlNLABxLOTd3UGorZzk0MmsvSElmVk80a0oveVVIb2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=B6MCS6oSkjBE5w3_wkgRZQpnEsI.*AAJTSQACMDIAAlNLABxLOTd3UGorZzk0MmsvSElmVk80a0oveVVIb2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682116488.169.277640.412366|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "B6MCS6oSkjBE5w3_wkgRZQpnEsI.*AAJTSQACMDIAAlNLABxLOTd3UGorZzk0MmsvSElmVk80a0oveVVIb2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 21 Apr 2023 22:34:47 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=iKwFbND5yuxaX4qA6ykAjf4d8UM&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': '3e075ad9b7158a3a0f50fc0dcc81922c'}
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": "iKwFbND5yuxaX4qA6ykAjf4d8UM"}' "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": "BbXX2_e_Yo9e3sz88Shv8BQ5-LI",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer BbXX2_e_Yo9e3sz88Shv8BQ5-LI" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/463c3780-fe2c-4b95-a42c-668b32312f62"
[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": "463c3780-fe2c-4b95-a42c-668b32312f62",
"_rev": "94521e10-b14d-4e81-aaa3-25f86515e783-484",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230421215612@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230421215612",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[21/Apr/2023 22:34:47] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped