--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 03:17:12] Validation_user_idm pre : N/A
________________________________________________________________________________
[02/May/2023 03:17:12] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[02/May/2023 03:17:12] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[02/May/2023 03:17:12] 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: yKUnQj5ekMq2AUImNHgbqlVe" -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": "u4CJHB3KiFBiPO2DD9-Zq3E6B4A.*AAJTSQACMDIAAlNLABx4d3B0VVBnbVYwRUJ3SFBlc2U1a0lFamFJQ2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=u4CJHB3KiFBiPO2DD9-Zq3E6B4A.*AAJTSQACMDIAAlNLABx4d3B0VVBnbVYwRUJ3SFBlc2U1a0lFamFJQ2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682997434.086.351910.751490|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "u4CJHB3KiFBiPO2DD9-Zq3E6B4A.*AAJTSQACMDIAAlNLABx4d3B0VVBnbVYwRUJ3SFBlc2U1a0lFamFJQ2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 03:17: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=ZyfFPNAQnKiEbq-qH8nlQsLCQ8c&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': '8d967a978dc5b18a19d3b9fb1f2c6529'}
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": "ZyfFPNAQnKiEbq-qH8nlQsLCQ8c"}' "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": "LNrAdQs3mF-wRaD00Jy526UeDA0",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer LNrAdQs3mF-wRaD00Jy526UeDA0" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230502023743", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230502023743@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": "8f6e22bb-ac00-4697-aeec-bf1fb3e22c4b",
"_rev": "7c8c1591-543c-4322-98b1-4e4b39368c68-504",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502023743@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502023743",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 03:17:15] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230502023743 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230502023743" -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": "zbnmbig_3c1SAJy1BMwiowr7-Ws.*AAJTSQACMDIAAlNLABxNKy90VDJTZURONmR1S3JBelN6Nk9tUFVWR0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=zbnmbig_3c1SAJy1BMwiowr7-Ws.*AAJTSQACMDIAAlNLABxNKy90VDJTZURONmR1S3JBelN6Nk9tUFVWR0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682997436.61.351571.201143|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "zbnmbig_3c1SAJy1BMwiowr7-Ws.*AAJTSQACMDIAAlNLABxNKy90VDJTZURONmR1S3JBelN6Nk9tUFVWR0E9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 03:17:15 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=GOz2vmbQz5LEY5Orl1WT-RRyvaM&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': 'a6e6141918c3c4688e0747eb13c8de9d'}
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": "GOz2vmbQz5LEY5Orl1WT-RRyvaM"}' "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": "U1mlt3Mwau4oHRDzGOu6tT97Fxw",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer U1mlt3Mwau4oHRDzGOu6tT97Fxw" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/8f6e22bb-ac00-4697-aeec-bf1fb3e22c4b"
[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": "8f6e22bb-ac00-4697-aeec-bf1fb3e22c4b",
"_rev": "7c8c1591-543c-4322-98b1-4e4b39368c68-504",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502023743@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502023743",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 03:17:16] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoidW1nNGlvOWI5ajJwM2p2ZTluZGprOHZjM2YiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU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Rkp3VEd4Vk1UTk5TMjFpTVhJd1gzUjVkRmhFUlhJNGRWZExTa2hVUkdSVlNIazFUSEpUVFhJd2QycDFTR1JYTUcxU1JuZHBNVTlYTTBkalNIQm1VRE13WVVWTlduWmZTMUE0TjNSQ2RHaFNTSEJrVFVoRFJ6aG5hRXcxVVZkSGVYbHZkM0F6WmtkaFdpMTRObXR3VFVWWFgwVlhUWG90TFhvd1ZrWjNUV050U1U1dVoyNVllVGhTUW1aWlRYUlNkM3B2TUdaVlpuUktZbTkwYTA1VGRWVktiVFZTTXpSUFMyNDVWa2xMVkRNMWFFeGtWSE5UY1RKaVgzVkdhMFZZU1VGeU1IVXhUR2xmVDBkVlpFRkVkR2RGZFc5cGRHMW9OVTFpU0dWNlZEazJaR05PV1ZoYWRtNWhkVXRNUW5FeVJtSlRTbkJSTGxobGQzUXRielZCWmxSRE1qWkVhVUprY0RKWGRsRS5PdC0zbmZOTk8tN3ZYcUV5bjNybFYwWFRDcTUwZGpwNDFWczRqYkpOekU4IiwiZXhwIjoxNjgyOTk3NzM3LCJpYXQiOjE2ODI5OTc0Mzd9.VtQrlxcwRqYV2BPkM9I9SIE75VYvQZxBTKAce1HZnUU",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoidW1nNGlvOWI5ajJwM2p2ZTluZGprOHZjM2YiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSF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Tk5TMjFpTVhJd1gzUjVkRmhFUlhJNGRWZExTa2hVUkdSVlNIazFUSEpUVFhJd2QycDFTR1JYTUcxU1JuZHBNVTlYTTBkalNIQm1VRE13WVVWTlduWmZTMUE0TjNSQ2RHaFNTSEJrVFVoRFJ6aG5hRXcxVVZkSGVYbHZkM0F6WmtkaFdpMTRObXR3VFVWWFgwVlhUWG90TFhvd1ZrWjNUV050U1U1dVoyNVllVGhTUW1aWlRYUlNkM3B2TUdaVlpuUktZbTkwYTA1VGRWVktiVFZTTXpSUFMyNDVWa2xMVkRNMWFFeGtWSE5UY1RKaVgzVkdhMFZZU1VGeU1IVXhUR2xmVDBkVlpFRkVkR2RGZFc5cGRHMW9OVTFpU0dWNlZEazJaR05PV1ZoYWRtNWhkVXRNUW5FeVJtSlRTbkJSTGxobGQzUXRielZCWmxSRE1qWkVhVUprY0RKWGRsRS5PdC0zbmZOTk8tN3ZYcUV5bjNybFYwWFRDcTUwZGpwNDFWczRqYkpOekU4IiwiZXhwIjoxNjgyOTk3NzM3LCJpYXQiOjE2ODI5OTc0Mzd9.VtQrlxcwRqYV2BPkM9I9SIE75VYvQZxBTKAce1HZnUU", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230502023743"}], "_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": "YGgGU-M4zP0w5Ln0NHSCnLsopKQ.*AAJTSQACMDIAAlNLABx5R0JIYVYzOXVlVnljc214cWZwNytUZGIwZ0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[02/May/2023 03:17:19] 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: yKUnQj5ekMq2AUImNHgbqlVe" -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": "zysxNFMjc7iMVl6ZYvT0kQmPHLY.*AAJTSQACMDIAAlNLABx5SUI4cGVmYTl6VmJmNVJ0WUVZV0NXMUFPL3M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=zysxNFMjc7iMVl6ZYvT0kQmPHLY.*AAJTSQACMDIAAlNLABx5SUI4cGVmYTl6VmJmNVJ0WUVZV0NXMUFPL3M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1682997440.295.351575.312991|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "zysxNFMjc7iMVl6ZYvT0kQmPHLY.*AAJTSQACMDIAAlNLABx5SUI4cGVmYTl6VmJmNVJ0WUVZV0NXMUFPL3M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 03:17:19 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=SFZrPH2rRK852P5_8NxaRvGHakI&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': 'a2fb9b28fcded2965540c0aa715651d5'}
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": "SFZrPH2rRK852P5_8NxaRvGHakI"}' "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": "NbL1AOAr6ByraWMLZU3QG5po_SE",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer NbL1AOAr6ByraWMLZU3QG5po_SE" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/8f6e22bb-ac00-4697-aeec-bf1fb3e22c4b"
[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": "8f6e22bb-ac00-4697-aeec-bf1fb3e22c4b",
"_rev": "7c8c1591-543c-4322-98b1-4e4b39368c68-504",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230502023743@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230502023743",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[02/May/2023 03:17:20] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped