--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 16:33:52] Validation_user_idm pre : N/A
________________________________________________________________________________
[07/Apr/2023 16:33:52] - INFO: Timeout for this Task has changed to 30m (1800 seconds)
[07/Apr/2023 16:33:52] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[07/Apr/2023 16:33:52] 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: GhreeTmWi07nocVZiFIragKq" -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": "uiZouLP8biO-sTpQDEYhh3_8yZ4.*AAJTSQACMDIAAlNLABxabUswbGJpaG9KdHZsb29Zb0x3LzNOaHNQbTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=uiZouLP8biO-sTpQDEYhh3_8yZ4.*AAJTSQACMDIAAlNLABxabUswbGJpaG9KdHZsb29Zb0x3LzNOaHNQbTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680885233.607.51557.184214|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "uiZouLP8biO-sTpQDEYhh3_8yZ4.*AAJTSQACMDIAAlNLABxabUswbGJpaG9KdHZsb29Zb0x3LzNOaHNQbTg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 16:33:52 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=pn1ZE5eL44JBA_HYvz6bLRvKIwA&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': '6d9b81ca05fc42f42cb17af8e2deb97f'}
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": "pn1ZE5eL44JBA_HYvz6bLRvKIwA"}' "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": "y00Rb57vFBr0NolmdBp5-q4ySAE",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer y00Rb57vFBr0NolmdBp5-q4ySAE" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230407160056", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230407160056@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": "805f3b95-d51f-41bb-bf9b-15338a1d68ec",
"_rev": "e3874785-feee-4502-99bf-df1553125fac-4000663",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407160056@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407160056",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 16:33:53] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230407160056 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230407160056" -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": "sIdtdxIBYrVpUmclUEgh_b1l-14.*AAJTSQACMDIAAlNLABwxcUYxWWtYK0wrM3lpa2ZpNEhTUXBzSU5TeXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=sIdtdxIBYrVpUmclUEgh_b1l-14.*AAJTSQACMDIAAlNLABwxcUYxWWtYK0wrM3lpa2ZpNEhTUXBzSU5TeXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680885234.637.51840.669074|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "sIdtdxIBYrVpUmclUEgh_b1l-14.*AAJTSQACMDIAAlNLABwxcUYxWWtYK0wrM3lpa2ZpNEhTUXBzSU5TeXc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 16:33:53 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=qmLLPKp7m34Qc_RgWIGt1exCe9E&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': '137d4d6757593355882d8eacc1c7daec'}
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": "qmLLPKp7m34Qc_RgWIGt1exCe9E"}' "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": "GrhtqMMkq_87SCeGiM6PRl9JgWE",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer GrhtqMMkq_87SCeGiM6PRl9JgWE" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/805f3b95-d51f-41bb-bf9b-15338a1d68ec"
[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": "805f3b95-d51f-41bb-bf9b-15338a1d68ec",
"_rev": "e3874785-feee-4502-99bf-df1553125fac-4000663",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407160056@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407160056",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 16:33:54] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicm9vNGVobHNrYmVjZG1iOGF0dGlnM284cTYiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQ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aekp1U0hCMlZuRnlWMmM0TkV4VGJucDBaRmR5U0d4TWRXVmxhVFoxVFRSaFJubGxZa3BOVlhCSFlXSjVjWGszVkZJMWVITXRPRFZaZFUxMmJsZEdiazlZV2xkU01HUlpNRzk2UVZVNWFHbDZhMUp4TXpabll6WmlkMnR1VlZkVExXcFJUalpZU1VaVFQzZFhPWGhQY1dWeGRWQlpiemR2UzBsbFNEbEdjWFkzZWxwNU5sODFXWGRJWW5CRFpYUkVhR2hpT0hNNFJGRjNObmhQUXpCUU9UaFNaa1psWm5Kd1lYVjRiSHBWYmpCb01VRmFhbVJCYlVWcVN6VmhUemxuTUdWNWREaHZSRUkyYVdOc2F6Uk5hbVYwY1ROdk1XNUxlWHBPYzBZM1VIWTNjRkJ5TUV4TlJURkZkRVYzTGpaNExXUnFSbVp2WjJKcmRHWnZPWGxQWlhBMlNuYy51Zl9VbjhBQnE5RFZXcFR5ZkpNdmJncGNRQ21pSnBCYW5ITlFnZExYQTFjIiwiZXhwIjoxNjgwODg1NTM1LCJpYXQiOjE2ODA4ODUyMzV9.0S75f40jU0N1gQd7sVl-EvIhw0DnZolBSnrlarjXxHI",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoicm9vNGVobHNrYmVjZG1iOGF0dGlnM284cTYiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZS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WMmM0TkV4VGJucDBaRmR5U0d4TWRXVmxhVFoxVFRSaFJubGxZa3BOVlhCSFlXSjVjWGszVkZJMWVITXRPRFZaZFUxMmJsZEdiazlZV2xkU01HUlpNRzk2UVZVNWFHbDZhMUp4TXpabll6WmlkMnR1VlZkVExXcFJUalpZU1VaVFQzZFhPWGhQY1dWeGRWQlpiemR2UzBsbFNEbEdjWFkzZWxwNU5sODFXWGRJWW5CRFpYUkVhR2hpT0hNNFJGRjNObmhQUXpCUU9UaFNaa1psWm5Kd1lYVjRiSHBWYmpCb01VRmFhbVJCYlVWcVN6VmhUemxuTUdWNWREaHZSRUkyYVdOc2F6Uk5hbVYwY1ROdk1XNUxlWHBPYzBZM1VIWTNjRkJ5TUV4TlJURkZkRVYzTGpaNExXUnFSbVp2WjJKcmRHWnZPWGxQWlhBMlNuYy51Zl9VbjhBQnE5RFZXcFR5ZkpNdmJncGNRQ21pSnBCYW5ITlFnZExYQTFjIiwiZXhwIjoxNjgwODg1NTM1LCJpYXQiOjE2ODA4ODUyMzV9.0S75f40jU0N1gQd7sVl-EvIhw0DnZolBSnrlarjXxHI", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230407160056"}], "_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": "hWRMvUtTdVY9BCymoaNW3S3DlCY.*AAJTSQACMDIAAlNLABxOeHNXdnJ1MWdJSkhFaE9lU2VtcUtrcThQa2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[07/Apr/2023 16:33:56] 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: GhreeTmWi07nocVZiFIragKq" -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": "QccCQs2i4GZPR2qrZkVa8CEcleQ.*AAJTSQACMDIAAlNLABwwaXdnazEwb0Fob3g2YWFwcGRKKzlhSm01Z0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=QccCQs2i4GZPR2qrZkVa8CEcleQ.*AAJTSQACMDIAAlNLABwwaXdnazEwb0Fob3g2YWFwcGRKKzlhSm01Z0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1680885237.491.51774.59576|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "QccCQs2i4GZPR2qrZkVa8CEcleQ.*AAJTSQACMDIAAlNLABwwaXdnazEwb0Fob3g2YWFwcGRKKzlhSm01Z0k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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 16:33:56 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=qsKJrNE17iAmlVZx61k-WnHTZsc&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': '67111743a3e16dae41877f78adb6f0a4'}
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": "qsKJrNE17iAmlVZx61k-WnHTZsc"}' "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": "8UsyWC8fPI2NwlpGscv5p4oVZTU",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 8UsyWC8fPI2NwlpGscv5p4oVZTU" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/805f3b95-d51f-41bb-bf9b-15338a1d68ec"
[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": "805f3b95-d51f-41bb-bf9b-15338a1d68ec",
"_rev": "e3874785-feee-4502-99bf-df1553125fac-4000663",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230407160056@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230407160056",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[07/Apr/2023 16:33:57] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped