--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
________________________________________________________________________________
[06/Apr/2023 21:44:56] Validation_user_idm pre : N/A
________________________________________________________________________________
[06/Apr/2023 21:44:56] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[06/Apr/2023 21:44:56] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[06/Apr/2023 21:44:56] 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: 2TCWKQMVTZBLC7JAuZXYbabh" -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": "zY1UEt6ah2LCQ3qhBZh1aEOgAJw.*AAJTSQACMDIAAlNLABw5Ujc3NmRYNTdtY2lmVTVxcmhobWl6dzdOZ0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=zY1UEt6ah2LCQ3qhBZh1aEOgAJw.*AAJTSQACMDIAAlNLABw5Ujc3NmRYNTdtY2lmVTVxcmhobWl6dzdOZ0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680817497.896.12794.573008|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "zY1UEt6ah2LCQ3qhBZh1aEOgAJw.*AAJTSQACMDIAAlNLABw5Ujc3NmRYNTdtY2lmVTVxcmhobWl6dzdOZ0U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 06 Apr 2023 21:44:57 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=-svvdFPoWCO7HIC_kZtBfEImBso&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': 'c364445b8eae5e4d84c599bb1eaaa2a0'}
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": "-svvdFPoWCO7HIC_kZtBfEImBso"}' "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": "bCxuILRQh7ZoZOBTaZr6CJCMufY",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer bCxuILRQh7ZoZOBTaZr6CJCMufY" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230406211322", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230406211322@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": "07c03b5c-2af6-4ab0-bb8c-e8eff6bcc652",
"_rev": "1c3c3131-4d71-4ca3-9ae0-73eef0a03a6a-4000631",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230406211322@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230406211322",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[06/Apr/2023 21:44:57] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230406211322 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230406211322" -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": "wc2aoaUcRt1mWh-e8C7SgXo2cmY.*AAJTSQACMDIAAlNLABxQU2NnT01wTmJ1Nm5sQkk1OGZZLzN2cnVkS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=wc2aoaUcRt1mWh-e8C7SgXo2cmY.*AAJTSQACMDIAAlNLABxQU2NnT01wTmJ1Nm5sQkk1OGZZLzN2cnVkS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680817498.904.12875.187183|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "wc2aoaUcRt1mWh-e8C7SgXo2cmY.*AAJTSQACMDIAAlNLABxQU2NnT01wTmJ1Nm5sQkk1OGZZLzN2cnVkS1U9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 06 Apr 2023 21:44:58 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=6uqoTkNu1zsox2yPDyeUGi9xkOw&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': '2ea575354134dea8ae7bc8fe6f11598e'}
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": "6uqoTkNu1zsox2yPDyeUGi9xkOw"}' "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": "A5FMchhZcFOw_6GBnQYAppr49RI",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer A5FMchhZcFOw_6GBnQYAppr49RI" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/07c03b5c-2af6-4ab0-bb8c-e8eff6bcc652"
[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": "07c03b5c-2af6-4ab0-bb8c-e8eff6bcc652",
"_rev": "1c3c3131-4d71-4ca3-9ae0-73eef0a03a6a-4000631",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230406211322@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230406211322",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[06/Apr/2023 21:44:58] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoic2FrdmZram9tOG8yMWcyczMza3FmdDdsZWUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjo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RUZrZFVNM1RHOXpTMU4xY2s5MkxVRklVMEZZUW5OWlozTlNUMFpVYkhKNlNYcEhOVmx1ZVY5VFIzUXhUazFaYW5oU01FSlllVjlxVFZGWlNWcG5kR2hIZFdGTGRFMTNOa3B6V1RaSGRGRjNUMnRWUzNGaldFRjVjMFJUUTBVd2NFUnNORWM1UmpGdE0yZGxjVGhEUTNsRFJpMWFaR3BmWW5JemVFVjBZa3RNTVd0bVJVdEthRXhhUkVoc2JFNUxlVWhGYjBSeWFteFJlbk13UTJGaGVGbG9iMUpQYTI5MFVrUlVValpmWWtsTWJFeEhVM0pLU0Zac1lUbHBXRk5wT1UwMVltcDNOWEZ5WTJob2MzTnNTM0ZpVlZwWFZsbGtRak53TjFCS2NUWlhUbEppYlZKYVJtdDRWRXA1Y2pWdFlrbFBaVkJXZGt4T1VXRmtkVGgwTUdKdFZFY3pNRGxOTGxCUVZVRkdjRTVJTnpaeVpUZFFkMHN6VDA1TGNXYy54eFFOSDk5cEp5amhqeW9Gd0RUS1AwUTdtY0JKZHF3RlpQV3pENFNid2JVIiwiZXhwIjoxNjgwODE3Nzk5LCJpYXQiOjE2ODA4MTc0OTl9.ev0hjaKS0U9XyqXTmiya7TFFDS_wQNQWcFWdgLUf2yE",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoic2FrdmZram9tOG8yMWcyczMza3FmdDdsZWUiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Np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OXpTMU4xY2s5MkxVRklVMEZZUW5OWlozTlNUMFpVYkhKNlNYcEhOVmx1ZVY5VFIzUXhUazFaYW5oU01FSlllVjlxVFZGWlNWcG5kR2hIZFdGTGRFMTNOa3B6V1RaSGRGRjNUMnRWUzNGaldFRjVjMFJUUTBVd2NFUnNORWM1UmpGdE0yZGxjVGhEUTNsRFJpMWFaR3BmWW5JemVFVjBZa3RNTVd0bVJVdEthRXhhUkVoc2JFNUxlVWhGYjBSeWFteFJlbk13UTJGaGVGbG9iMUpQYTI5MFVrUlVValpmWWtsTWJFeEhVM0pLU0Zac1lUbHBXRk5wT1UwMVltcDNOWEZ5WTJob2MzTnNTM0ZpVlZwWFZsbGtRak53TjFCS2NUWlhUbEppYlZKYVJtdDRWRXA1Y2pWdFlrbFBaVkJXZGt4T1VXRmtkVGgwTUdKdFZFY3pNRGxOTGxCUVZVRkdjRTVJTnpaeVpUZFFkMHN6VDA1TGNXYy54eFFOSDk5cEp5amhqeW9Gd0RUS1AwUTdtY0JKZHF3RlpQV3pENFNid2JVIiwiZXhwIjoxNjgwODE3Nzk5LCJpYXQiOjE2ODA4MTc0OTl9.ev0hjaKS0U9XyqXTmiya7TFFDS_wQNQWcFWdgLUf2yE", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230406211322"}], "_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": "6c0zrOv7b07VenphO-XQnWR9xeY.*AAJTSQACMDIAAlNLABxEOU9vcjI3WCt4WDk2SUNlTWUwUlFMNVVlN3M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[06/Apr/2023 21:45:00] 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: 2TCWKQMVTZBLC7JAuZXYbabh" -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": "8QSMG0BTIDi9jZEYPt5YzDhL9uk.*AAJTSQACMDIAAlNLABwzQ1FDck1iUjVoN0xHaGZKcEgva0FyZDJsZ2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=8QSMG0BTIDi9jZEYPt5YzDhL9uk.*AAJTSQACMDIAAlNLABwzQ1FDck1iUjVoN0xHaGZKcEgva0FyZDJsZ2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680817501.795.12797.158693|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "8QSMG0BTIDi9jZEYPt5YzDhL9uk.*AAJTSQACMDIAAlNLABwzQ1FDck1iUjVoN0xHaGZKcEgva0FyZDJsZ2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Thu, 06 Apr 2023 21:45:01 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=Dch6rvkctVy0QtXntwFPL1fR0xk&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': '54a7ac1f21243fec908784b85bdfc924'}
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": "Dch6rvkctVy0QtXntwFPL1fR0xk"}' "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": "WcE2KcpEVTqw0gKD5eSdRb2VFpQ",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer WcE2KcpEVTqw0gKD5eSdRb2VFpQ" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/07c03b5c-2af6-4ab0-bb8c-e8eff6bcc652"
[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": "07c03b5c-2af6-4ab0-bb8c-e8eff6bcc652",
"_rev": "1c3c3131-4d71-4ca3-9ae0-73eef0a03a6a-4000631",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230406211322@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230406211322",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[06/Apr/2023 21:45:01] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped