--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 20:56:10] Validation_user_idm pre : N/A
________________________________________________________________________________
[07/Apr/2023 20:56:10] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[07/Apr/2023 20:56:10] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[07/Apr/2023 20:56:10] 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: W4Z2lAvfOVDLZ8b5QPWcgirc" -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": "zZSL96e7tNT-oSV3BXHmSUe9vR4.*AAJTSQACMDIAAlNLABxwb3NObWxETEpCOGVoeWkyQXFaQVFOSkRJdVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=zZSL96e7tNT-oSV3BXHmSUe9vR4.*AAJTSQACMDIAAlNLABxwb3NObWxETEpCOGVoeWkyQXFaQVFOSkRJdVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680900971.303.66652.567321|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "zZSL96e7tNT-oSV3BXHmSUe9vR4.*AAJTSQACMDIAAlNLABxwb3NObWxETEpCOGVoeWkyQXFaQVFOSkRJdVU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 20:56:10 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=e53a0U267_j2bRR7RsuPRUKB-wc&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': 'e154cace9bbaefef57f704ae6371e713'}
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": "e53a0U267_j2bRR7RsuPRUKB-wc"}' "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": "b8INmkPLuvyYTBNyEjL7OhqyYE4",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer b8INmkPLuvyYTBNyEjL7OhqyYE4" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230407202505", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230407202505@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": "d33662d1-4b97-4068-bb2b-bcf8fe783a26",
"_rev": "c86bfa9a-c7e8-4384-9fae-f60dfe2e11a7-4000621",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407202505@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407202505",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 20:56:11] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230407202505 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230407202505" -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": "stlVKJcZu82N3oywLeCVbwBRujo.*AAJTSQACMDIAAlNLABxwUFVFbjRmeDFoM1Z0RHkzeDNzaGdGY1FTdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=stlVKJcZu82N3oywLeCVbwBRujo.*AAJTSQACMDIAAlNLABxwUFVFbjRmeDFoM1Z0RHkzeDNzaGdGY1FTdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680900972.251.66427.392201|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "stlVKJcZu82N3oywLeCVbwBRujo.*AAJTSQACMDIAAlNLABxwUFVFbjRmeDFoM1Z0RHkzeDNzaGdGY1FTdzA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 20:56:11 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=wHJRcwo_KnoIuGVrHmrqfXkqw24&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': '071ab939ebe7b0fd062bac5d0d527c44'}
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": "wHJRcwo_KnoIuGVrHmrqfXkqw24"}' "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": "ZQNTcbTgOnqan2IK9btI07119m4",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer ZQNTcbTgOnqan2IK9btI07119m4" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/d33662d1-4b97-4068-bb2b-bcf8fe783a26"
[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": "d33662d1-4b97-4068-bb2b-bcf8fe783a26",
"_rev": "c86bfa9a-c7e8-4384-9fae-f60dfe2e11a7-4000621",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407202505@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407202505",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 20:56:12] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibmw4bzZsOG9xaXBtZWdna2VxcGxvcjY4cjciLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSF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ZMlgxZG9SR3hHYkZneFNqZDRjMHAzVkdVNVlrWkJhM2MzVVZKalVrOXFORXRxVEhWeFlTMWxUakZPVkVVNFNUQnNWSE42T1RoTFVXMTBjMUpsUXkxWk5XcFFNM0Y0ZDFOcWFVRk1YMDkzYjJ4S2FuY3RZVzV4WDJSWk56WnFVMFIyUjBGUVR6TlpjMko1TlhST1NHZGlaR1pLWkRGRGFYSXlNMlZDTUZoTU0wZFROMk5SV0djMmRtVlBObDlhWmtsNE5XUnNUVmxsUVRkcFVXbFllRzkyYlc0Mk1uSkRSek5SZUdsMmEwbENUSEJ4V1ZOSE0xOUVZM0ZPU1hwb2RsSTVZVlUwWldGQlVrNXNTMTl4VHkxWlRrRktWa3BsZDA5T2NTMU9hRVI0UVcxWFFYWmxWRVJRTkhSMloyZGpTa1V3TGpGb01VZHlNRGxYWTFKb2ExaGFSMFowZURkU00yYy55elEtZkRZSVpDOTlDdEplOE9OZGcwWU1nTFAxdGlhaEdRSmFQdkFqNEhZIiwiZXhwIjoxNjgwOTAxMjczLCJpYXQiOjE2ODA5MDA5NzN9.GD3iBwd4-h9iiGAMes3Xhib_U2BGDtQCPrQeekomVaM",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibmw4bzZsOG9xaXBtZWdna2VxcGxvcjY4cjciLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFc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HYkZneFNqZDRjMHAzVkdVNVlrWkJhM2MzVVZKalVrOXFORXRxVEhWeFlTMWxUakZPVkVVNFNUQnNWSE42T1RoTFVXMTBjMUpsUXkxWk5XcFFNM0Y0ZDFOcWFVRk1YMDkzYjJ4S2FuY3RZVzV4WDJSWk56WnFVMFIyUjBGUVR6TlpjMko1TlhST1NHZGlaR1pLWkRGRGFYSXlNMlZDTUZoTU0wZFROMk5SV0djMmRtVlBObDlhWmtsNE5XUnNUVmxsUVRkcFVXbFllRzkyYlc0Mk1uSkRSek5SZUdsMmEwbENUSEJ4V1ZOSE0xOUVZM0ZPU1hwb2RsSTVZVlUwWldGQlVrNXNTMTl4VHkxWlRrRktWa3BsZDA5T2NTMU9hRVI0UVcxWFFYWmxWRVJRTkhSMloyZGpTa1V3TGpGb01VZHlNRGxYWTFKb2ExaGFSMFowZURkU00yYy55elEtZkRZSVpDOTlDdEplOE9OZGcwWU1nTFAxdGlhaEdRSmFQdkFqNEhZIiwiZXhwIjoxNjgwOTAxMjczLCJpYXQiOjE2ODA5MDA5NzN9.GD3iBwd4-h9iiGAMes3Xhib_U2BGDtQCPrQeekomVaM", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230407202505"}], "_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": "QxWYrieiWq943MDOQcRQeed75us.*AAJTSQACMDIAAlNLABxWR0VGZXdndnc1dHdjM1hMUE0wd0k1MStWQTA9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[07/Apr/2023 20:56:14] 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: W4Z2lAvfOVDLZ8b5QPWcgirc" -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": "etNGVye1S3c6JMQq3HeFA4l1oCg.*AAJTSQACMDIAAlNLABw5Y2I5MUZGOXlrdjF2MkxVZzdyemFWT2duRTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=etNGVye1S3c6JMQq3HeFA4l1oCg.*AAJTSQACMDIAAlNLABw5Y2I5MUZGOXlrdjF2MkxVZzdyemFWT2duRTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680900975.336.66674.444935|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "etNGVye1S3c6JMQq3HeFA4l1oCg.*AAJTSQACMDIAAlNLABw5Y2I5MUZGOXlrdjF2MkxVZzdyemFWT2duRTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 20:56: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=vgBMQiH4SAy1jGUYGDufVSTHNIk&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': '0b2c3627046226d5a80dc4c467ee212a'}
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": "vgBMQiH4SAy1jGUYGDufVSTHNIk"}' "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": "EDbUIzXosG_Psc5a-If9QwVeYM8",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer EDbUIzXosG_Psc5a-If9QwVeYM8" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/d33662d1-4b97-4068-bb2b-bcf8fe783a26"
[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": "d33662d1-4b97-4068-bb2b-bcf8fe783a26",
"_rev": "c86bfa9a-c7e8-4384-9fae-f60dfe2e11a7-4000621",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407202505@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407202505",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 20:56:15] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped