--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
________________________________________________________________________________
[07/Apr/2023 03:09:12] Validation_user_idm pre : N/A
________________________________________________________________________________
[07/Apr/2023 03:09:12] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[07/Apr/2023 03:09:12] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[07/Apr/2023 03:09: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: F8bNMJBLkUSwqmZdGTQNePxw" -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": "qdTMyWsFbWd-4Qtk4OdjQp7qS-g.*AAJTSQACMDIAAlNLABxubUFaaUxXanhHT1hyMnRmNDFWS09qdmxYdjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=qdTMyWsFbWd-4Qtk4OdjQp7qS-g.*AAJTSQACMDIAAlNLABxubUFaaUxXanhHT1hyMnRmNDFWS09qdmxYdjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680836953.779.42102.54722|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "qdTMyWsFbWd-4Qtk4OdjQp7qS-g.*AAJTSQACMDIAAlNLABxubUFaaUxXanhHT1hyMnRmNDFWS09qdmxYdjA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 07 Apr 2023 03:09:13 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=GQ3mzmNll34ZhgVD7RtLE_TuNxQ&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': 'f292b9f195761e9739e990d01cbff7dc'}
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": "GQ3mzmNll34ZhgVD7RtLE_TuNxQ"}' "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": "KvKYJq2iO-Hm5N56f0wN8sk8_X4",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer KvKYJq2iO-Hm5N56f0wN8sk8_X4" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230407023846", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230407023846@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": "a07aaf3e-1377-4ec2-8301-aacff0d140b1",
"_rev": "94b1cbfa-450e-43e7-8372-dff7096e477a-4000601",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407023846@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407023846",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 03:09:13] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230407023846 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230407023846" -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": "GhBrLPJSfg_5Bfto-pC-bqvQlNw.*AAJTSQACMDIAAlNLABxxWkpaSmUzWmxFZzN3N01iNTlOdHNBeUQ5OWM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=GhBrLPJSfg_5Bfto-pC-bqvQlNw.*AAJTSQACMDIAAlNLABxxWkpaSmUzWmxFZzN3N01iNTlOdHNBeUQ5OWM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680836954.727.42232.569541|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "GhBrLPJSfg_5Bfto-pC-bqvQlNw.*AAJTSQACMDIAAlNLABxxWkpaSmUzWmxFZzN3N01iNTlOdHNBeUQ5OWM9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 07 Apr 2023 03:09: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=1-pwY6ww2-F_y-u8xebNFrw1ZG4&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': '0bfa2391bb8be9e5ead69dc2620577a0'}
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": "1-pwY6ww2-F_y-u8xebNFrw1ZG4"}' "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": "PRJffumi_xJVwQc4RGYtNTBXfQk",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer PRJffumi_xJVwQc4RGYtNTBXfQk" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/a07aaf3e-1377-4ec2-8301-aacff0d140b1"
[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": "a07aaf3e-1377-4ec2-8301-aacff0d140b1",
"_rev": "94b1cbfa-450e-43e7-8372-dff7096e477a-4000601",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407023846@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407023846",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 03:09:14] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYmNzNWhndW0yY3JkMzE4Y3VrbzVnM3R2dTMiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6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U5VOWZhaTE0ZFVJeGQyVTNRWFJ6WWtKalZGVjNOalEwV0RSTlNVeHJOR2RWV0hWNlltdzFVSFZyT0ZKNFZqUjJVMDlvT1UxemRHbDVRa2xOV1dwYU5ta3pRMjB0ZWpoalluUnpNbVJyVVZwSWRURm5RV05OUkVOVE9UaDZiRlIwY2tObGRUZ3hUV3RFT0dGSVkxWllMV05qVEd0b1J6aGFhbEIyUm5CbVdXMXFWMUpDWlY5WWN6aFNNbXA1TldKQ1VIQTBVRVZ6TVRWMVJqRm1iMFZpU0ZNNVdXVkxTbmhrWlhGblIySnJSemROWDBkWWFuQXRWRTEyVURCNU56bFRTM2hUWm5wb1QxWkNZbXBOVmtZeGJrOUxXVjh6Y0dkbVRFcFZkV3R6TWxKcFRsRnhaV0psY0RoVFdVTm5jRUpHWm1WdFlqRk1VMWhKTGxReFlYTmFWbVZRVm1kNldVRmlYMWRTUmt0a2NuYy5YLUxIWVRlb3JwS0ZPTWd3bEtSeTdGN0RjVW4yVlRWODNIN0k1OFNYay13IiwiZXhwIjoxNjgwODM3MjU1LCJpYXQiOjE2ODA4MzY5NTV9.j7tIt712xV7lDVtmO87ObZHznhC5xkTN5gXI1OvlD2A",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoiYmNzNWhndW0yY3JkMzE4Y3VrbzVnM3R2dTMiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01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VJeGQyVTNRWFJ6WWtKalZGVjNOalEwV0RSTlNVeHJOR2RWV0hWNlltdzFVSFZyT0ZKNFZqUjJVMDlvT1UxemRHbDVRa2xOV1dwYU5ta3pRMjB0ZWpoalluUnpNbVJyVVZwSWRURm5RV05OUkVOVE9UaDZiRlIwY2tObGRUZ3hUV3RFT0dGSVkxWllMV05qVEd0b1J6aGFhbEIyUm5CbVdXMXFWMUpDWlY5WWN6aFNNbXA1TldKQ1VIQTBVRVZ6TVRWMVJqRm1iMFZpU0ZNNVdXVkxTbmhrWlhGblIySnJSemROWDBkWWFuQXRWRTEyVURCNU56bFRTM2hUWm5wb1QxWkNZbXBOVmtZeGJrOUxXVjh6Y0dkbVRFcFZkV3R6TWxKcFRsRnhaV0psY0RoVFdVTm5jRUpHWm1WdFlqRk1VMWhKTGxReFlYTmFWbVZRVm1kNldVRmlYMWRTUmt0a2NuYy5YLUxIWVRlb3JwS0ZPTWd3bEtSeTdGN0RjVW4yVlRWODNIN0k1OFNYay13IiwiZXhwIjoxNjgwODM3MjU1LCJpYXQiOjE2ODA4MzY5NTV9.j7tIt712xV7lDVtmO87ObZHznhC5xkTN5gXI1OvlD2A", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230407023846"}], "_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": "l8SJUE_5o-EK2tix8s6tRZ9If6s.*AAJTSQACMDIAAlNLABxNMmZuT2tvZ1hTdWIrT25UbmhFaWhwdExueDQ9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[07/Apr/2023 03:09:16] 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: F8bNMJBLkUSwqmZdGTQNePxw" -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": "gDKvoTMWC8n_Ifv3KtvZDQxBSE8.*AAJTSQACMDIAAlNLABxTK25oR094d1hTWjIyTWRKSEluRnFyNS9UTXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=gDKvoTMWC8n_Ifv3KtvZDQxBSE8.*AAJTSQACMDIAAlNLABxTK25oR094d1hTWjIyTWRKSEluRnFyNS9UTXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680836957.705.42265.501225|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "gDKvoTMWC8n_Ifv3KtvZDQxBSE8.*AAJTSQACMDIAAlNLABxTK25oR094d1hTWjIyTWRKSEluRnFyNS9UTXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Fri, 07 Apr 2023 03:09:16 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=72tn6w9X4X_D1MXfluJQdkvzWac&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': 'fabb35803f437cfe099b63f1531e4b24'}
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": "72tn6w9X4X_D1MXfluJQdkvzWac"}' "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": "7ZsVplFn3i7tt7e_QjGVPXvuhQY",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 7ZsVplFn3i7tt7e_QjGVPXvuhQY" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/a07aaf3e-1377-4ec2-8301-aacff0d140b1"
[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": "a07aaf3e-1377-4ec2-8301-aacff0d140b1",
"_rev": "94b1cbfa-450e-43e7-8372-dff7096e477a-4000601",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407023846@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407023846",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 03:09:17] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped