--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
________________________________________________________________________________
[19/Apr/2023 20:03:02] Validation_user_idm pre : N/A
________________________________________________________________________________
[19/Apr/2023 20:03:02] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
[19/Apr/2023 20:03:02] - INFO: timeout was set to Task default (2x global_duration or 300 seconds (whatever is higher)), because it was unset
________________________________________________________________________________
[19/Apr/2023 20:03:02] 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: v71DjcGs7j7hMWOHweWEn5L1" -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": "evU-8t5qEYt2a1hZl8kkY5QnMKs.*AAJTSQACMDIAAlNLABxKVzV4K0g5Ni9TTElTUE1NaWVOMkZ1SG9aM1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=evU-8t5qEYt2a1hZl8kkY5QnMKs.*AAJTSQACMDIAAlNLABxKVzV4K0g5Ni9TTElTUE1NaWVOMkZ1SG9aM1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681934584.266.227322.301586|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "evU-8t5qEYt2a1hZl8kkY5QnMKs.*AAJTSQACMDIAAlNLABxKVzV4K0g5Ni9TTElTUE1NaWVOMkZ1SG9aM1k9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 19 Apr 2023 20:03:03 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=yQph1Yk2lQOZ7sKILowAAIZNA9I&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': '24e28fff867f2ab5b5527d8a7f05734d'}
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": "yQph1Yk2lQOZ7sKILowAAIZNA9I"}' "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": "FiZ5M-gCJ8yvPh8DP3Xh3XsP_3M",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer FiZ5M-gCJ8yvPh8DP3Xh3XsP_3M" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm_20230419192415", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm_20230419192415@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": "6a7d0c99-faf4-410e-a4dc-1593ed11aeb4",
"_rev": "fa138a55-9110-4af8-9cbf-8ea9ef47ede2-476",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419192415@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419192415",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 20:03:05] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm_20230419192415 via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm_20230419192415" -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": "qinTylsH-j-m5PmuuMq17Bw7JqQ.*AAJTSQACMDIAAlNLABxjUkNHRlJaQVcrQitVSzN5dllBb3pzenVhOHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=qinTylsH-j-m5PmuuMq17Bw7JqQ.*AAJTSQACMDIAAlNLABxjUkNHRlJaQVcrQitVSzN5dllBb3pzenVhOHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681934586.625.227680.286338|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "qinTylsH-j-m5PmuuMq17Bw7JqQ.*AAJTSQACMDIAAlNLABxjUkNHRlJaQVcrQitVSzN5dllBb3pzenVhOHc9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 19 Apr 2023 20:03:06 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=WxmrlVd7UCM-r22eA4JtbhnA--I&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': 'be2a1e5483893eda7ac604d044b275bd'}
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": "WxmrlVd7UCM-r22eA4JtbhnA--I"}' "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": "N6JsgImOzdfRYenrESkTQ6e-IFQ",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer N6JsgImOzdfRYenrESkTQ6e-IFQ" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/6a7d0c99-faf4-410e-a4dc-1593ed11aeb4"
[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": "6a7d0c99-faf4-410e-a4dc-1593ed11aeb4",
"_rev": "fa138a55-9110-4af8-9cbf-8ea9ef47ede2-476",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419192415@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419192415",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 20:03:07] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibGpuOHJxZWptZXZjdnM2aGI2NmtjcDUzcXAiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6Iip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TJTMVZ1VkRJd1psUnhibUp2UmpkdVltVmxWR1UzUkVWWk5IVmtlVEJKY0Rack9YVlpPR3BDY2xWV1dtVnJhRm80YUVwdGJrczBiMFJTYUVWellsQk9jVVozU2psSFZrcGZYMmxqTVdaaFpXbExjVmN6T1VoTlMwNHdTMUJ3VFc5a2RUTmpTMFpqV25kdWVXdDZSak5wZDBJd1MxVnhkVW8xUTFoTGNGZGtUMXBYV1hOSmRWcHZkMGxPUVZkVFJqRXdVVFZ3YkhwMFFtMWlVM0Z5ZEVwQ1gzbG9NV3BNVEdaTVJUUjJiMUJrWWxJeVoycG9iMlZaTFZkcWIzbFlXR3BqUW5GdGEzRlBjSGhWVm1wcVNrVjZka1ZHWHpFNU5EQnFZbmw1T0ZWalp6TjFYMHh0U2pkV1pVbE1NM0ZHU2tKalpHeFZTWEpGTGpsU1VYWXhiMEpZY2tJeVFYVk5NRzFFVVdsUVluYy5RNElJTVhmTHRTQVQwLUVJQy1BaDJfMlZWRW5QT09hdzdFS3NUcW1tWVVnIiwiZXhwIjoxNjgxOTM0ODg4LCJpYXQiOjE2ODE5MzQ1ODh9.6-GGBC8q1Nzimncu_tZIPFWMH4BXn1o095jRiQy9PCA",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibGpuOHJxZWptZXZjdnM2aGI2NmtjcDUzcXAiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01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d1psUnhibUp2UmpkdVltVmxWR1UzUkVWWk5IVmtlVEJKY0Rack9YVlpPR3BDY2xWV1dtVnJhRm80YUVwdGJrczBiMFJTYUVWellsQk9jVVozU2psSFZrcGZYMmxqTVdaaFpXbExjVmN6T1VoTlMwNHdTMUJ3VFc5a2RUTmpTMFpqV25kdWVXdDZSak5wZDBJd1MxVnhkVW8xUTFoTGNGZGtUMXBYV1hOSmRWcHZkMGxPUVZkVFJqRXdVVFZ3YkhwMFFtMWlVM0Z5ZEVwQ1gzbG9NV3BNVEdaTVJUUjJiMUJrWWxJeVoycG9iMlZaTFZkcWIzbFlXR3BqUW5GdGEzRlBjSGhWVm1wcVNrVjZka1ZHWHpFNU5EQnFZbmw1T0ZWalp6TjFYMHh0U2pkV1pVbE1NM0ZHU2tKalpHeFZTWEpGTGpsU1VYWXhiMEpZY2tJeVFYVk5NRzFFVVdsUVluYy5RNElJTVhmTHRTQVQwLUVJQy1BaDJfMlZWRW5QT09hdzdFS3NUcW1tWVVnIiwiZXhwIjoxNjgxOTM0ODg4LCJpYXQiOjE2ODE5MzQ1ODh9.6-GGBC8q1Nzimncu_tZIPFWMH4BXn1o095jRiQy9PCA", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm_20230419192415"}], "_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": "MIg6eURApwCnIaAi2ZXhDWFcKnk.*AAJTSQACMDIAAlNLABwrZjk4aWFuTnR6NUtNRUd4YUZ1TlRIWFpBQ2M9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[19/Apr/2023 20:03:08] 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: v71DjcGs7j7hMWOHweWEn5L1" -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": "GvbYdj9jmxsrbDg689PxBIWlIbE.*AAJTSQACMDIAAlNLABxWWEJIcWsvNzQwSlFsRDFEd2hhR1I2dnlPT2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=GvbYdj9jmxsrbDg689PxBIWlIbE.*AAJTSQACMDIAAlNLABxWWEJIcWsvNzQwSlFsRDFEd2hhR1I2dnlPT2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1681934590.145.227680.330099|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "GvbYdj9jmxsrbDg689PxBIWlIbE.*AAJTSQACMDIAAlNLABxWWEJIcWsvNzQwSlFsRDFEd2hhR1I2dnlPT2c9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Wed, 19 Apr 2023 20:03:09 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=vs8QT-l3SD4zkfCFoPVY5X1Mjb0&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': '2575b95a04243e04f2b03d4a0832f451'}
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": "vs8QT-l3SD4zkfCFoPVY5X1Mjb0"}' "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": "RVeBOH-a9h6YxpwhYmTpAvp-oeQ",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer RVeBOH-a9h6YxpwhYmTpAvp-oeQ" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/6a7d0c99-faf4-410e-a4dc-1593ed11aeb4"
[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": "6a7d0c99-faf4-410e-a4dc-1593ed11aeb4",
"_rev": "fa138a55-9110-4af8-9cbf-8ea9ef47ede2-476",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm_20230419192415@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"effectiveAssignments": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm_20230419192415",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[19/Apr/2023 20:03:09] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped