--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
________________________________________________________________________________
[20/Apr/2023 00:09:35] Validation_user_idm pre : N/A
________________________________________________________________________________
[20/Apr/2023 00:09:35] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[20/Apr/2023 00:09:35] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[20/Apr/2023 00:09:35] 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: 0DnsaBQz9hzz4a0b3U82m70o" -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": "1-5oyFrFWVzXlIgJ6U9b1n6rvWM.*AAJTSQACMDIAAlNLABxKQmh4Q25VRnZwUWpwK0NjeXpYekZrR05YSVE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=1-5oyFrFWVzXlIgJ6U9b1n6rvWM.*AAJTSQACMDIAAlNLABxKQmh4Q25VRnZwUWpwK0NjeXpYekZrR05YSVE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681949376.362.236875.748906|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "1-5oyFrFWVzXlIgJ6U9b1n6rvWM.*AAJTSQACMDIAAlNLABxKQmh4Q25VRnZwUWpwK0NjeXpYekZrR05YSVE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 20 Apr 2023 00:09: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=3rNcEa2OhFWHj2_qadgwEh9q4XY&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': '612f9a3063ef02999d5c19de64de7379'}
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": "3rNcEa2OhFWHj2_qadgwEh9q4XY"}' "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": "PRhWA25gvX0YvLEIEJAqmfY9WpA",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer PRhWA25gvX0YvLEIEJAqmfY9WpA" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230419233108", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230419233108@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": "527756f4-c13b-4352-8389-65f6b5749b70",
"_rev": "5fd4a335-a6c9-4fb8-afbb-4b5772b3b11a-487",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419233108@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419233108",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Apr/2023 00:09:37] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230419233108 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230419233108" -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": "tHA9jaW3CS1z8sIGJI6L_ZzpSo0.*AAJTSQACMDIAAlNLABwzVnNsMzZsTmVHd0krNGh2WVVOcDdGSTU0a0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=tHA9jaW3CS1z8sIGJI6L_ZzpSo0.*AAJTSQACMDIAAlNLABwzVnNsMzZsTmVHd0krNGh2WVVOcDdGSTU0a0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681949378.663.237128.916138|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "tHA9jaW3CS1z8sIGJI6L_ZzpSo0.*AAJTSQACMDIAAlNLABwzVnNsMzZsTmVHd0krNGh2WVVOcDdGSTU0a0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 20 Apr 2023 00:09:38 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=vphY9rwqe4FWzQreuc1HA_ZCLVw&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': '6df91dc4cfd658f53e4d91b751b8e474'}
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": "vphY9rwqe4FWzQreuc1HA_ZCLVw"}' "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": "-hIlq7UuQwNyYTjHTahkbYgT8rU",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer -hIlq7UuQwNyYTjHTahkbYgT8rU" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/527756f4-c13b-4352-8389-65f6b5749b70"
[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": "527756f4-c13b-4352-8389-65f6b5749b70",
"_rev": "5fd4a335-a6c9-4fb8-afbb-4b5772b3b11a-487",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419233108@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419233108",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Apr/2023 00:09:39] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYzd2anJpY2Rpb2MzZGt0aHU5YTVlcDNsdmsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ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R3YUU5MWNEUk5OazV5TkVWNFNEVjNUVU0wUjBaamJqZFZjMFY1U2poVVMxSlBVelI2VHpCTWVuVkZTMjgyTFdOTmNuaDVhRzVFVUVwTE1Ha3RYelUxVEVaNmVHeDFNR1pSYmxWc2IxTlNWR2huY1hSRGFtWlVOV3d3VlZCSFRtbFljVjlUYUUxd1VHSXpTVkJzUkRCSWNITTVMVGMyWTFKUVpXaHlXRVJxU0c1dVFVeEtNbFZYYkU1eWRuTkxkalZyVFVWVVdqSTBaMW94UVc1eldXUjVOa015ZW1Sb2FIZGtkemMyVHpJMWRtVTRZbG80ZFZNd1psVmthMDlWU0U5VFdFOHljSEowVUZoUWRuYzRVREpMYjJoUldIWmthRXRwZVZoeGREazBPRTFsY0VzNFRUWjBYMjAzVFhkM05rTnJWSEJWTG1OeVVFVm1OWE55YkVSbWJsaHZVSFJpUm5oelozYy5meVNDX1pYb2RpLVQwWXdpTDhTNGlmNUVuUGVZRkhpVUpxLUktc3o3dUc4IiwiZXhwIjoxNjgxOTQ5NjgwLCJpYXQiOjE2ODE5NDkzODB9.DsnHQbCUQgSiMBGv87Rlu-QrHj0NFie2tabR3rpSGDk",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYzd2anJpY2Rpb2MzZGt0aHU5YTVlcDNsdmsiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNF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WNFNEVjNUVU0wUjBaamJqZFZjMFY1U2poVVMxSlBVelI2VHpCTWVuVkZTMjgyTFdOTmNuaDVhRzVFVUVwTE1Ha3RYelUxVEVaNmVHeDFNR1pSYmxWc2IxTlNWR2huY1hSRGFtWlVOV3d3VlZCSFRtbFljVjlUYUUxd1VHSXpTVkJzUkRCSWNITTVMVGMyWTFKUVpXaHlXRVJxU0c1dVFVeEtNbFZYYkU1eWRuTkxkalZyVFVWVVdqSTBaMW94UVc1eldXUjVOa015ZW1Sb2FIZGtkemMyVHpJMWRtVTRZbG80ZFZNd1psVmthMDlWU0U5VFdFOHljSEowVUZoUWRuYzRVREpMYjJoUldIWmthRXRwZVZoeGREazBPRTFsY0VzNFRUWjBYMjAzVFhkM05rTnJWSEJWTG1OeVVFVm1OWE55YkVSbWJsaHZVSFJpUm5oelozYy5meVNDX1pYb2RpLVQwWXdpTDhTNGlmNUVuUGVZRkhpVUpxLUktc3o3dUc4IiwiZXhwIjoxNjgxOTQ5NjgwLCJpYXQiOjE2ODE5NDkzODB9.DsnHQbCUQgSiMBGv87Rlu-QrHj0NFie2tabR3rpSGDk", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230419233108"}], "_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": "-lm36Q4a44nW7GPDv0bH3fGAhmE.*AAJTSQACMDIAAlNLABwzbFEwZThnUmltbjV4QlVjUGFsYzAxOGpweW89AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[20/Apr/2023 00:09:40] 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: 0DnsaBQz9hzz4a0b3U82m70o" -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": "vPYVqOf8hOOPsYuGO3YjlyM8tis.*AAJTSQACMDIAAlNLABw4Qk9XMmF4ZXdHNnZZVDBZRnB0MEYveTBwb1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=vPYVqOf8hOOPsYuGO3YjlyM8tis.*AAJTSQACMDIAAlNLABw4Qk9XMmF4ZXdHNnZZVDBZRnB0MEYveTBwb1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681949381.609.236973.227433|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "vPYVqOf8hOOPsYuGO3YjlyM8tis.*AAJTSQACMDIAAlNLABw4Qk9XMmF4ZXdHNnZZVDBZRnB0MEYveTBwb1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 20 Apr 2023 00:09:40 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=ohGRPssSGnK0GsOvbTMNWOw_fcI&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': '6af51267cc7bbf886d32c1249eaa8c90'}
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": "ohGRPssSGnK0GsOvbTMNWOw_fcI"}' "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": "gDvxNtGdw-GGM22JODNO_jjHYOU",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer gDvxNtGdw-GGM22JODNO_jjHYOU" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/527756f4-c13b-4352-8389-65f6b5749b70"
[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": "527756f4-c13b-4352-8389-65f6b5749b70",
"_rev": "5fd4a335-a6c9-4fb8-afbb-4b5772b3b11a-487",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419233108@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419233108",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Apr/2023 00:09:41] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped