--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 21:47:27] Validation_user_idm pre : N/A
________________________________________________________________________________
[02/May/2023 21:47:27] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[02/May/2023 21:47:27] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[02/May/2023 21:47:27] 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: JKZgEDJSOSKWp5E1ttT9RiI3" -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": "UIFmxF1cZ6Y3WF7VBq3LRM34GzQ.*AAJTSQACMDIAAlNLABxFZVh1WHJvdmU1WEZkajBNdG9ucHVjUjRSTXM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=UIFmxF1cZ6Y3WF7VBq3LRM34GzQ.*AAJTSQACMDIAAlNLABxFZVh1WHJvdmU1WEZkajBNdG9ucHVjUjRSTXM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683064048.845.376214.734258|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "UIFmxF1cZ6Y3WF7VBq3LRM34GzQ.*AAJTSQACMDIAAlNLABxFZVh1WHJvdmU1WEZkajBNdG9ucHVjUjRSTXM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 21:47:28 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=ETwZuaNhgU6edCPgZ9UWieXg8-k&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': 'b403724ed6ff09be18051b1217ae0dc1'}
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": "ETwZuaNhgU6edCPgZ9UWieXg8-k"}' "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": "goIOsibV-r3RndZ1n8PDDc-3SYg",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer goIOsibV-r3RndZ1n8PDDc-3SYg" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230502210810", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230502210810@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": "9f660f44-f30c-4c37-b601-364a72f0fb2c",
"_rev": "5d386e0f-522f-49a6-97f0-744df028ccbe-489",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502210810@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502210810",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 21:47:29] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230502210810 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230502210810" -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": "lhOt5HxuqjPew2x-IHoKZL5Yjxg.*AAJTSQACMDIAAlNLABwwdlZPeFc3OHZQYmpzeVkyZDJqWEx1Z2NrOWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=lhOt5HxuqjPew2x-IHoKZL5Yjxg.*AAJTSQACMDIAAlNLABwwdlZPeFc3OHZQYmpzeVkyZDJqWEx1Z2NrOWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683064050.678.376263.496192|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "lhOt5HxuqjPew2x-IHoKZL5Yjxg.*AAJTSQACMDIAAlNLABwwdlZPeFc3OHZQYmpzeVkyZDJqWEx1Z2NrOWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 21:47:29 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=fE2mScyKlEjS-GomQwZPPCZA84U&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': '07abf2f222c137ea496e23866ef4dad0'}
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": "fE2mScyKlEjS-GomQwZPPCZA84U"}' "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": "8kgBU55GbbfDec_vLkddIZfXy4w",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 8kgBU55GbbfDec_vLkddIZfXy4w" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/9f660f44-f30c-4c37-b601-364a72f0fb2c"
[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": "9f660f44-f30c-4c37-b601-364a72f0fb2c",
"_rev": "5d386e0f-522f-49a6-97f0-744df028ccbe-489",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502210810@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502210810",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 21:47:30] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiMTNmdTFqM2Y5bDAwZzFsYTNzMjZvcWRxdDYiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0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VkVSdmFFb3pjMHRUV0hSbVlVRXpiRk0xWmxKbmFEUXRXamRrVG5kbVRGTkVNVFJXYmtRelV6WXpRVXhEYW1ORGRGbGpTalpCV2tFMWNVaGhkVjlzWW1jM09WZENiMFF5YlVOemQyc3lSMVpSU0hGNkxVeE5kMkZKV0ZoMFRqWTRiRjgzUTNORWNXSkJRa3hGWDJsdmMyc3pMV1ZUVldsR2NXVmZUWHA2ZG5WaVdFWXlOVmN0TXpaT1VXTk5XblZxU2pNNWMxcHliMUExUW5oRVpTMTVkRWhNTVdoWU5raDNkbFpFZDJOTE9XNHhMWGRhY0hnMU9VUnZSVWRqZURkSlRuSlZjQzFGV0dSUVYyOXFjRmhXYWxoTFIzbDFUM2xhUm5CeWRFNXRkVVJrT1VONWFrVllOSGxWTG1sVFZVVlZUa1JqWjJaSFdIcHplVFpZY2twTWVVRS5TaFVPaFJBR1NEU2d2YmpxVUJ1c0RkbXRVZXloQzRyR3d6cHZPRm5LVHFvIiwiZXhwIjoxNjgzMDY0MzUxLCJpYXQiOjE2ODMwNjQwNTF9.P6KYf10eiWUkLeVrhdSJQ_6drM8aUBIUkG09Pbdr5Vw",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiMTNmdTFqM2Y5bDAwZzFsYTNzMjZvcWRxdDYiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFh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3pjMHRUV0hSbVlVRXpiRk0xWmxKbmFEUXRXamRrVG5kbVRGTkVNVFJXYmtRelV6WXpRVXhEYW1ORGRGbGpTalpCV2tFMWNVaGhkVjlzWW1jM09WZENiMFF5YlVOemQyc3lSMVpSU0hGNkxVeE5kMkZKV0ZoMFRqWTRiRjgzUTNORWNXSkJRa3hGWDJsdmMyc3pMV1ZUVldsR2NXVmZUWHA2ZG5WaVdFWXlOVmN0TXpaT1VXTk5XblZxU2pNNWMxcHliMUExUW5oRVpTMTVkRWhNTVdoWU5raDNkbFpFZDJOTE9XNHhMWGRhY0hnMU9VUnZSVWRqZURkSlRuSlZjQzFGV0dSUVYyOXFjRmhXYWxoTFIzbDFUM2xhUm5CeWRFNXRkVVJrT1VONWFrVllOSGxWTG1sVFZVVlZUa1JqWjJaSFdIcHplVFpZY2twTWVVRS5TaFVPaFJBR1NEU2d2YmpxVUJ1c0RkbXRVZXloQzRyR3d6cHZPRm5LVHFvIiwiZXhwIjoxNjgzMDY0MzUxLCJpYXQiOjE2ODMwNjQwNTF9.P6KYf10eiWUkLeVrhdSJQ_6drM8aUBIUkG09Pbdr5Vw", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230502210810"}], "_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": "FMjyGfOMK_BSsuKM9il7lyA-g4w.*AAJTSQACMDIAAlNLABxXbnI0ZmxqR3ZDTWZpWVg0VkVqN1J2UnVxNHM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[02/May/2023 21:47:32] 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: JKZgEDJSOSKWp5E1ttT9RiI3" -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": "2ycys4ZexZSqu6-G_g7v4gvKMmw.*AAJTSQACMDIAAlNLABx1ejJqZStSQjNxemdkS2o0dGt0OTVMT0NaSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=2ycys4ZexZSqu6-G_g7v4gvKMmw.*AAJTSQACMDIAAlNLABx1ejJqZStSQjNxemdkS2o0dGt0OTVMT0NaSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683064053.39.375999.415757|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "2ycys4ZexZSqu6-G_g7v4gvKMmw.*AAJTSQACMDIAAlNLABx1ejJqZStSQjNxemdkS2o0dGt0OTVMT0NaSE09AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 21:47: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=uQ60GonMTGZjdREhA6QrgVnmUDw&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': '853b015cb6217b4c3481c4ebb461af5c'}
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": "uQ60GonMTGZjdREhA6QrgVnmUDw"}' "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": "clKgEbvSWG4esMfLOSV65FmfQpc",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer clKgEbvSWG4esMfLOSV65FmfQpc" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/9f660f44-f30c-4c37-b601-364a72f0fb2c"
[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": "9f660f44-f30c-4c37-b601-364a72f0fb2c",
"_rev": "5d386e0f-522f-49a6-97f0-744df028ccbe-489",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502210810@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502210810",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 21:47:34] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped