--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
________________________________________________________________________________
[04/Feb/2023 03:57:41] Validation_user_idm pre : N/A
________________________________________________________________________________
[04/Feb/2023 03:57:41] - INFO: Timeout for this Task has changed to 1d 04h (100800 seconds)
[04/Feb/2023 03:57:41] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[04/Feb/2023 03:57: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: WQAeIj6YQPJvtvWMDwZ3R2DR" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "JWAVbqf3OwxpKSfLaulHatXLbfY.*AAJTSQACMDIAAlNLABxkRk1VaWU3ajZ0OFI4L09YVzZXdXJTVGpvUjQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=JWAVbqf3OwxpKSfLaulHatXLbfY.*AAJTSQACMDIAAlNLABxkRk1VaWU3ajZ0OFI4L09YVzZXdXJTVGpvUjQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675483062.547.13863.365461|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "JWAVbqf3OwxpKSfLaulHatXLbfY.*AAJTSQACMDIAAlNLABxkRk1VaWU3ajZ0OFI4L09YVzZXdXJTVGpvUjQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sat, 04 Feb 2023 03:57:42 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=fF7LinVBXd2ifSNZ0t2_6vxftX8&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': '2d0c176bc9587bc6c180516b6f48524c'}
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": "fF7LinVBXd2ifSNZ0t2_6vxftX8"}' "https://xlou.iam.xlou-bsln.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": "0a5S6qFj_Vxu3irmEr2iEpDNz68",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 0a5S6qFj_Vxu3irmEr2iEpDNz68" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm@forgerock.com"}' "https://xlou.iam.xlou-bsln.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": "fe0c4e72-a270-474a-83e9-b850a541b8b1",
"_rev": "91f6b56d-ee96-4284-a61f-e0b9bd61d3cd-1000404",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[04/Feb/2023 03:57:43] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm" -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-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "FYNIqRLOEZnleDYplrVYIFRydXo.*AAJTSQACMDIAAlNLABxCaC9VampDanJaSHdKMmFGdE0rM0I5bDZYVWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=FYNIqRLOEZnleDYplrVYIFRydXo.*AAJTSQACMDIAAlNLABxCaC9VampDanJaSHdKMmFGdE0rM0I5bDZYVWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675483064.806.14121.807573|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "FYNIqRLOEZnleDYplrVYIFRydXo.*AAJTSQACMDIAAlNLABxCaC9VampDanJaSHdKMmFGdE0rM0I5bDZYVWc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sat, 04 Feb 2023 03:57:44 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=2LWbrERgMX2cAo2I_YSJQq8Ij94&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': 'f3cccfa7ae447897472df892483b1704'}
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": "2LWbrERgMX2cAo2I_YSJQq8Ij94"}' "https://xlou.iam.xlou-bsln.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": "nMrZ-Cfj4umDdCWfR-LZtDXASAM",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer nMrZ-Cfj4umDdCWfR-LZtDXASAM" --insecure -L -X GET "https://xlou.iam.xlou-bsln.engineeringpit.com/openidm/managed/user/fe0c4e72-a270-474a-83e9-b850a541b8b1"
[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": "fe0c4e72-a270-474a-83e9-b850a541b8b1",
"_rev": "91f6b56d-ee96-4284-a61f-e0b9bd61d3cd-1000404",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[04/Feb/2023 03:57:45] 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-bsln.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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiM3RnNGRiODFvZ2c2Y2RrZjR1ZnJiOXRlMmoiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURF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lTWnpOU1pUVmxVMlJDYzBKTVVsRlFSVmxQVTBkTGJEWmpPVFZ6V21JdFp6Tk5lalpyV1RoRlZucHhlblZqWjNoWE9GRmlUVEp6VUZGTVkwZE5NRVZJWmw5UFdFZElNM1l5WWpkS2IxWllkblo1VmpSaFRISlhhamRYZDFGS1FVSlJZbGh0WjNSa2VISkNXbWQxTjJaeFNuRlJhMWhxTldWR2RGWk1WSE5mTmkwM2JrOXBTRlJ1TW13NFluWlNWemRtU2tOWFowNVRNR1I0Tm5aV1ZFbGtSWEUyTmt0SVJrdDZWbkZFU2tnMExVeEhhbXhSWjJOSlYwNDRlVTFhUjJWMk9HWjNMbWgyWlhCcGRVaHVRbFI2VlhWUWJWSmxaRVoyTjFFLlFUc3ZsX0R0X1RKaVlmal94LWUtdGFuNGR1VmZUdXVUSzh6QU9rSDRGSGMiLCJleHAiOjE2NzU0ODMzNjYsImlhdCI6MTY3NTQ4MzA2Nn0.wfh3G8LDgIDXPg2W7VF22OHlTpK_a06Zbzu6QPRrIRk",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiM3RnNGRiODFvZ2c2Y2RrZjR1ZnJiOXRlMmoiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9pSktWMVFpTENKamRIa2lPaUpLVjFRaUx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EWmpPVFZ6V21JdFp6Tk5lalpyV1RoRlZucHhlblZqWjNoWE9GRmlUVEp6VUZGTVkwZE5NRVZJWmw5UFdFZElNM1l5WWpkS2IxWllkblo1VmpSaFRISlhhamRYZDFGS1FVSlJZbGh0WjNSa2VISkNXbWQxTjJaeFNuRlJhMWhxTldWR2RGWk1WSE5mTmkwM2JrOXBTRlJ1TW13NFluWlNWemRtU2tOWFowNVRNR1I0Tm5aV1ZFbGtSWEUyTmt0SVJrdDZWbkZFU2tnMExVeEhhbXhSWjJOSlYwNDRlVTFhUjJWMk9HWjNMbWgyWlhCcGRVaHVRbFI2VlhWUWJWSmxaRVoyTjFFLlFUc3ZsX0R0X1RKaVlmal94LWUtdGFuNGR1VmZUdXVUSzh6QU9rSDRGSGMiLCJleHAiOjE2NzU0ODMzNjYsImlhdCI6MTY3NTQ4MzA2Nn0.wfh3G8LDgIDXPg2W7VF22OHlTpK_a06Zbzu6QPRrIRk", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm"}], "_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-bsln.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": "qB5YE3xMg8f5G-GShN2Sdbw-1Hk.*AAJTSQACMDIAAlNLABxPZUFwcTdZUlNFaU5QQk40VUN4OGF2ZENqdkk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[04/Feb/2023 03:57: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: WQAeIj6YQPJvtvWMDwZ3R2DR" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" -L -X POST "https://xlou.iam.xlou-bsln.engineeringpit.com/am/json/authenticate?realm=/"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"tokenId": "Bl9vK5k71Djs0kxtFofM2EVpWHg.*AAJTSQACMDIAAlNLABxaM2tKWEN3eGhLc3ROb1IzU1FQSWlycjdFaHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=Bl9vK5k71Djs0kxtFofM2EVpWHg.*AAJTSQACMDIAAlNLABxaM2tKWEN3eGhLc3ROb1IzU1FQSWlycjdFaHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1675483067.617.13866.781040|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "Bl9vK5k71Djs0kxtFofM2EVpWHg.*AAJTSQACMDIAAlNLABxaM2tKWEN3eGhLc3ROb1IzU1FQSWlycjdFaHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "https://xlou.iam.xlou-bsln.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': 'Sat, 04 Feb 2023 03:57:46 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=gccHh3eX1Wr0Z31parjl2YTU7ac&iss=https%3A%2F%2Fxlou.iam.xlou-bsln.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': '404a6860ba05980cfabd4dedbcf49166'}
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": "gccHh3eX1Wr0Z31parjl2YTU7ac"}' "https://xlou.iam.xlou-bsln.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": "5b3aLXKNp05RhddlZuobihABfsM",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 5b3aLXKNp05RhddlZuobihABfsM" --insecure -L -X DELETE "https://xlou.iam.xlou-bsln.engineeringpit.com/openidm/managed/user/fe0c4e72-a270-474a-83e9-b850a541b8b1"
[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": "fe0c4e72-a270-474a-83e9-b850a541b8b1",
"_rev": "91f6b56d-ee96-4284-a61f-e0b9bd61d3cd-1000404",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[04/Feb/2023 03:57:47] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped