--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 01:21:03] Validation_user_idm pre : N/A
________________________________________________________________________________
[07/Apr/2023 01:21:03] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[07/Apr/2023 01:21:03] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[07/Apr/2023 01:21:03] 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: GatSB1GuigutfdDQNJy3NZPQ" -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": "pCu_WaWPfKikvTgs4IgrV6z0eYw.*AAJTSQACMDIAAlNLABx5SmNPcEdDSnZKNTgzRmtvbVBzZUlrSE9GeEk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=pCu_WaWPfKikvTgs4IgrV6z0eYw.*AAJTSQACMDIAAlNLABx5SmNPcEdDSnZKNTgzRmtvbVBzZUlrSE9GeEk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680830464.796.32442.372522|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "pCu_WaWPfKikvTgs4IgrV6z0eYw.*AAJTSQACMDIAAlNLABx5SmNPcEdDSnZKNTgzRmtvbVBzZUlrSE9GeEk9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 01:21:04 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=u-7YMOMgkmlXQ_YuWJSDFRsbxwc&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': '2335e1162a91df3cd994bc21b932b043'}
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": "u-7YMOMgkmlXQ_YuWJSDFRsbxwc"}' "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": "gkIWm-7apE_7Do5-Dt4wabsvB3o",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer gkIWm-7apE_7Do5-Dt4wabsvB3o" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230407005029", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230407005029@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": "ae3068bf-7b02-4a71-98af-d036db89f25a",
"_rev": "68c7afeb-d277-4e58-9627-f95fe6a5fb9e-4000606",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407005029@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407005029",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 01:21:04] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230407005029 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230407005029" -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": "WPWjsWNx5bPJk9FEP6mcfhbxpQs.*AAJTSQACMDIAAlNLABx5SlhVZ2VjN01VNmU1SkNTNytRcUwvVHdEMzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=WPWjsWNx5bPJk9FEP6mcfhbxpQs.*AAJTSQACMDIAAlNLABx5SlhVZ2VjN01VNmU1SkNTNytRcUwvVHdEMzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680830465.853.32438.314416|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "WPWjsWNx5bPJk9FEP6mcfhbxpQs.*AAJTSQACMDIAAlNLABx5SlhVZ2VjN01VNmU1SkNTNytRcUwvVHdEMzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 01:21:05 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=e3VtdnOB5n47GnV0laAXeELMttc&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': '4172c7b376f9d58b3e08b78544b86d10'}
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": "e3VtdnOB5n47GnV0laAXeELMttc"}' "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": "8du3tLu4QOJv-eEv51YMeqhbuW0",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 8du3tLu4QOJv-eEv51YMeqhbuW0" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/ae3068bf-7b02-4a71-98af-d036db89f25a"
[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": "ae3068bf-7b02-4a71-98af-d036db89f25a",
"_rev": "68c7afeb-d277-4e58-9627-f95fe6a5fb9e-4000606",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407005029@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407005029",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 01:21:05] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia29lOXByY2YxMjVwZXJsZmo1aGIxaDlzOTkiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESU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IY3pOalRYRlpWRmRtVldjMFNIbHVMVFIyTldJd01XNU1kMnRYWDFSWlZGTk9hRmRwYUZZMmFXaG1MVFU1VWxGWlRIbFFaMkp4Tm5VNWNqWkhNRkJJYW1wTlNIVmlXbWxtVDFOVlRsQnFZV1ZHWmpaTlJXVmlOM2xsWmtwdVlrNW1TelY0WTB4SFdtRXRiV2RaUVhwSldVazVYM0UyUkRSTmNFUXROMHR4YTJweFoweGpOVmRCV20xYU5rTkZURVptWTJaUGNtRXpWbGRhZWtaelpHNVZMWEpHYzI1Nk5GbGtSRlZCT0VwSFgwUjRRV2w0WDNCQ01WWlNTV001WTJFNE5EQjFUbmczY25GeVZsQnhNalJVTnpoMFZFbHBkVWxhYUZGVWMwWXhXREZOZW1wUGNraG1Sa3B2TGpSeVh6bG5hRlIxWjFsaFUxUlBSa2R5WjAxM01GRS5nYUdERXpuUzdCWllYZUIzano3OVFaNU05ZXFlNTZCeXNWWEJ0WHQ1TzRvIiwiZXhwIjoxNjgwODMwNzY2LCJpYXQiOjE2ODA4MzA0NjZ9.KaTO2G4xOJGm3512ZzHvUvjc5-E_ejzI-8oNYoKtIJs",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoia29lOXByY2YxMjVwZXJsZmo1aGIxaDlzOTkiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSS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FIyTldJd01XNU1kMnRYWDFSWlZGTk9hRmRwYUZZMmFXaG1MVFU1VWxGWlRIbFFaMkp4Tm5VNWNqWkhNRkJJYW1wTlNIVmlXbWxtVDFOVlRsQnFZV1ZHWmpaTlJXVmlOM2xsWmtwdVlrNW1TelY0WTB4SFdtRXRiV2RaUVhwSldVazVYM0UyUkRSTmNFUXROMHR4YTJweFoweGpOVmRCV20xYU5rTkZURVptWTJaUGNtRXpWbGRhZWtaelpHNVZMWEpHYzI1Nk5GbGtSRlZCT0VwSFgwUjRRV2w0WDNCQ01WWlNTV001WTJFNE5EQjFUbmczY25GeVZsQnhNalJVTnpoMFZFbHBkVWxhYUZGVWMwWXhXREZOZW1wUGNraG1Sa3B2TGpSeVh6bG5hRlIxWjFsaFUxUlBSa2R5WjAxM01GRS5nYUdERXpuUzdCWllYZUIzano3OVFaNU05ZXFlNTZCeXNWWEJ0WHQ1TzRvIiwiZXhwIjoxNjgwODMwNzY2LCJpYXQiOjE2ODA4MzA0NjZ9.KaTO2G4xOJGm3512ZzHvUvjc5-E_ejzI-8oNYoKtIJs", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230407005029"}], "_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": "90UOi8J-e-XRhS5rK3ha9LZAWDI.*AAJTSQACMDIAAlNLABxBSUpmbG1aWGcyc1E5QVM0UmFkRE5TelBYVFE9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[07/Apr/2023 01:21:07] 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: GatSB1GuigutfdDQNJy3NZPQ" -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": "OoAdK0I8S7sIXivdlGuQjiht8KE.*AAJTSQACMDIAAlNLABxDUVNUUC8rWWRHSTJ2VG12TnBWTmdWaWEwUTA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=OoAdK0I8S7sIXivdlGuQjiht8KE.*AAJTSQACMDIAAlNLABxDUVNUUC8rWWRHSTJ2VG12TnBWTmdWaWEwUTA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680830468.798.32439.520074|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "OoAdK0I8S7sIXivdlGuQjiht8KE.*AAJTSQACMDIAAlNLABxDUVNUUC8rWWRHSTJ2VG12TnBWTmdWaWEwUTA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 01:21: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=376IMSCdqBq5EG3nMQHT7c07JLk&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': '83f0aa2a66c4830f256b929439e0a734'}
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": "376IMSCdqBq5EG3nMQHT7c07JLk"}' "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": "bHc2e-q2ROsMX-xGsPv8vNRRf-E",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer bHc2e-q2ROsMX-xGsPv8vNRRf-E" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/ae3068bf-7b02-4a71-98af-d036db89f25a"
[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": "ae3068bf-7b02-4a71-98af-d036db89f25a",
"_rev": "68c7afeb-d277-4e58-9627-f95fe6a5fb9e-4000606",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407005029@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407005029",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 01:21:08] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped