--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
________________________________________________________________________________
[03/May/2023 06:23:07] Validation_user_idm pre : N/A
________________________________________________________________________________
[03/May/2023 06:23:07] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[03/May/2023 06:23:07] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[03/May/2023 06:23:07] 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: 5Gl1wX2FRfYMRNPjR85uaeFr" -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": "AmmpvizJ2GhT94BQ5AigrqO7j5U.*AAJTSQACMDIAAlNLABx3MDVxeGdrRTlHWUxyLzIrT2I4Misya1MzdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=AmmpvizJ2GhT94BQ5AigrqO7j5U.*AAJTSQACMDIAAlNLABx3MDVxeGdrRTlHWUxyLzIrT2I4Misya1MzdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683094988.635.395643.77104|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "AmmpvizJ2GhT94BQ5AigrqO7j5U.*AAJTSQACMDIAAlNLABx3MDVxeGdrRTlHWUxyLzIrT2I4Misya1MzdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 06:23:08 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=Azk9QLivMffnrrGl35UXYaUJXrU&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': 'fd29fd9453e97a8988c44d7281107ee1'}
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": "Azk9QLivMffnrrGl35UXYaUJXrU"}' "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": "nXkX7hxsh59h_tVlArIDxCKxEB0",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer nXkX7hxsh59h_tVlArIDxCKxEB0" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230503054354", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230503054354@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": "78fdb3bb-29da-4371-8053-0aef68219ef2",
"_rev": "1c3f5b9b-5f19-4fbd-b937-b7366abf5c09-493",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503054354@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503054354",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 06:23:10] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230503054354 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230503054354" -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": "Dq99Bo_hQ6y7JfhylIHMhFmwzyA.*AAJTSQACMDIAAlNLABxCL1hTUkJGWFdCYTJ2NWZZNlRhWk9SQTJuZnc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=Dq99Bo_hQ6y7JfhylIHMhFmwzyA.*AAJTSQACMDIAAlNLABxCL1hTUkJGWFdCYTJ2NWZZNlRhWk9SQTJuZnc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683094991.34.395898.756869|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "Dq99Bo_hQ6y7JfhylIHMhFmwzyA.*AAJTSQACMDIAAlNLABxCL1hTUkJGWFdCYTJ2NWZZNlRhWk9SQTJuZnc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 06:23:10 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=ly4fx37XIN7isFqSKrp_HBBAtI8&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': 'ccf64ea7469a34c3f40fd8986d5bbc04'}
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": "ly4fx37XIN7isFqSKrp_HBBAtI8"}' "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": "PUe2Cy-mZBpmkzZQunS3Z6O2_7M",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer PUe2Cy-mZBpmkzZQunS3Z6O2_7M" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/78fdb3bb-29da-4371-8053-0aef68219ef2"
[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": "78fdb3bb-29da-4371-8053-0aef68219ef2",
"_rev": "1c3f5b9b-5f19-4fbd-b937-b7366abf5c09-493",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503054354@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503054354",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 06:23:11] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYWRscDlnNXYxOGl1MTRoOTFoYWprYmhqcXMiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI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UZneGRXRk9Telp2VWpCUlZqRkplSFZpV0hsSU9ISkRSbkIwVW1jeU5VdEVWbXhHY2t0T1VUVjVRMGRLZUVkMWJ6VnNNblJyYTBWTWExOHdTRlZoVXpWdVJVWlJSbTVVT0V4bFVGUTJhRFJsZGxOU1dqZGtTak5NUmxOWWFXZGxZMU5SZURSbWJDMHRNa1JyUkU1bFVYbEVjVlpRVERsWlNscDBVMVkyUlRaQlZsWXlSblZQTFZGaE1qZHZXa3B2ZURGMlUybEJPSGRHUWpkVlowMXZWbGgwVGtOTWFXaHdWMWh2WTJoQ1JYbExjRWRNUlZwMFdGOVphWEU1U1ZWQ01VbDFibFJKVmkxM2RGZENNVFEyWmtoc1h6UkdWbGhKYkVaNk1HTlNlVEV5UzNKUlJGRnNVbmhqTG1WaVp6VlVVMlpCWVRSeWVYcE1WMUpZVEhWbVVXYy5LTnpsM1dfUGVUNVJXREZkak1LRkV5emtsdzZwOVJ0YmxXWUthZlVJV0o4IiwiZXhwIjoxNjgzMDk1MjkyLCJpYXQiOjE2ODMwOTQ5OTJ9.2JdVpEq15LsCZ87D5GuyOloz-g_wlZhPshjX2mE2oZU",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYWRscDlnNXYxOGl1MTRoOTFoYWprYmhqcXMiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVl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qRkplSFZpV0hsSU9ISkRSbkIwVW1jeU5VdEVWbXhHY2t0T1VUVjVRMGRLZUVkMWJ6VnNNblJyYTBWTWExOHdTRlZoVXpWdVJVWlJSbTVVT0V4bFVGUTJhRFJsZGxOU1dqZGtTak5NUmxOWWFXZGxZMU5SZURSbWJDMHRNa1JyUkU1bFVYbEVjVlpRVERsWlNscDBVMVkyUlRaQlZsWXlSblZQTFZGaE1qZHZXa3B2ZURGMlUybEJPSGRHUWpkVlowMXZWbGgwVGtOTWFXaHdWMWh2WTJoQ1JYbExjRWRNUlZwMFdGOVphWEU1U1ZWQ01VbDFibFJKVmkxM2RGZENNVFEyWmtoc1h6UkdWbGhKYkVaNk1HTlNlVEV5UzNKUlJGRnNVbmhqTG1WaVp6VlVVMlpCWVRSeWVYcE1WMUpZVEhWbVVXYy5LTnpsM1dfUGVUNVJXREZkak1LRkV5emtsdzZwOVJ0YmxXWUthZlVJV0o4IiwiZXhwIjoxNjgzMDk1MjkyLCJpYXQiOjE2ODMwOTQ5OTJ9.2JdVpEq15LsCZ87D5GuyOloz-g_wlZhPshjX2mE2oZU", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230503054354"}], "_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": "PFDIqIHg9_95Dra0UaTZO5C5I6M.*AAJTSQACMDIAAlNLABwwN3R5SGMxNnIxZnJiaHR3NXVDZG1qTzEvQzQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[03/May/2023 06:23:13] 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: 5Gl1wX2FRfYMRNPjR85uaeFr" -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": "JHz7xg_4OWRjHw5UugPYVOwfF4M.*AAJTSQACMDIAAlNLABx1OUlib2hZT1N2TW5jZmxiRkRsWUdpb0FMWjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=JHz7xg_4OWRjHw5UugPYVOwfF4M.*AAJTSQACMDIAAlNLABx1OUlib2hZT1N2TW5jZmxiRkRsWUdpb0FMWjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1683094994.959.395971.124936|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "JHz7xg_4OWRjHw5UugPYVOwfF4M.*AAJTSQACMDIAAlNLABx1OUlib2hZT1N2TW5jZmxiRkRsWUdpb0FMWjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 03 May 2023 06:23:14 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=hJFUBEonWZU5pvujzZCrC9sqLAE&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': '54728f873d6c9c5415c59d1185b1f728'}
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": "hJFUBEonWZU5pvujzZCrC9sqLAE"}' "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": "H82PpGIaD9p_n9i2tqiYDNYrS8E",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer H82PpGIaD9p_n9i2tqiYDNYrS8E" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/78fdb3bb-29da-4371-8053-0aef68219ef2"
[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": "78fdb3bb-29da-4371-8053-0aef68219ef2",
"_rev": "1c3f5b9b-5f19-4fbd-b937-b7366abf5c09-493",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230503054354@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230503054354",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[03/May/2023 06:23:14] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped