--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
________________________________________________________________________________
[20/Sep/2022 21:36:21] Validation_user_idm pre : N/A
________________________________________________________________________________
[20/Sep/2022 21:36:21] - INFO: setting default timeout for task - 2x global_duration or 300 seconds (whatever is higher):
[20/Sep/2022 21:36:21] - INFO: Timeout for this Task has changed to 10h (36000 seconds)
________________________________________________________________________________
[20/Sep/2022 21:36:21] 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: g9MedzgbgIVpJMw6qO5rEBnu" -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": "bfbwqS1lFbDp_NLLM0XSbjgiTOM.*AAJTSQACMDIAAlNLABxwOFdLSUdud0tvTXdtR2tvZEZiYnJYUUpVQjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=bfbwqS1lFbDp_NLLM0XSbjgiTOM.*AAJTSQACMDIAAlNLABxwOFdLSUdud0tvTXdtR2tvZEZiYnJYUUpVQjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663709783.259.20920.344650|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "bfbwqS1lFbDp_NLLM0XSbjgiTOM.*AAJTSQACMDIAAlNLABxwOFdLSUdud0tvTXdtR2tvZEZiYnJYUUpVQjg9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 20 Sep 2022 21:36:22 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=2wiTVfMER1REOKcOh8wxxe9TojU&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': 'c9e3b5d32e7a7f9c91e78aacae976f67'}
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": "2wiTVfMER1REOKcOh8wxxe9TojU"}' "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": "nMR70GOAIy0H_Kh177P-y4kclbU",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer nMR70GOAIy0H_Kh177P-y4kclbU" --insecure -L -X POST --data '{"userName": "SpiderMan_on_idm", "givenName": "Peter", "sn": "Parker", "password": "T35tr0ck123", "telephoneNumber": "6669876987", "description": "IDM Test User", "roles": [], "mail": "SpiderMan_on_idm@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 201)
--- http response ---
[print_head_tail]: Print head (10 lines) and tail (10 lines) of input string (32 lines):
----- output -----
{
"_id": "15063b83-ee6f-49ab-9d9d-b1916ed11623",
"_rev": "d43810df-8f92-4af3-86d4-eba273f6940f-483",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 21:36:24] Validation_user_idm step2 : Make sure we can search the user both in IDM
________________________________________________________________________________
Authenticate user SpiderMan_on_idm via REST
[http_cmd]: curl -H "X-OpenAM-Username: SpiderMan_on_idm" -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": "NV3nLjKywCp9ggQPt4NvoCYaEyY.*AAJTSQACMDIAAlNLABxvUVF4WkpGK3NiZ1o5T3I5dWhtNFN6cW9xcEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=NV3nLjKywCp9ggQPt4NvoCYaEyY.*AAJTSQACMDIAAlNLABxvUVF4WkpGK3NiZ1o5T3I5dWhtNFN6cW9xcEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663709785.375.21050.826596|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "NV3nLjKywCp9ggQPt4NvoCYaEyY.*AAJTSQACMDIAAlNLABxvUVF4WkpGK3NiZ1o5T3I5dWhtNFN6cW9xcEU9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 20 Sep 2022 21:36:24 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=Va1cAfu4f708VI8_JHQJUbFgY9I&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': 'f6cb9fb0228b19a99339f36347d45d9d'}
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": "Va1cAfu4f708VI8_JHQJUbFgY9I"}' "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": "1mbNaYF-ARCOoL2lzn3MJ0n7Ljg",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer 1mbNaYF-ARCOoL2lzn3MJ0n7Ljg" --insecure -L -X GET "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/15063b83-ee6f-49ab-9d9d-b1916ed11623"
[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": "15063b83-ee6f-49ab-9d9d-b1916ed11623",
"_rev": "d43810df-8f92-4af3-86d4-eba273f6940f-483",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 21:36:25] 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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibGg3Y2Q0NmtsbDNtdW1tdWE2c3VnNDliaDIiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9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EZlQzFRZW10cVRuTXlZamRzWVU0d2NVTldkRkUwV0ZOa1JYY3hjVzlKUmpaU1oweHBUMUp5WlVoeWMxSjFjWEo1Y2pGTGVFVjZOVFp1U205a09XdFVhVzF1Vmtkb05sVldWREEzZFRSaGMxWnBNMjF6ZVd3ME9VeDJPV3BqV1ZGTVFYVkhVRUp3ZDNaTVJFVnhXRll4YzBKbmVtaExWaTFEU0VsQ2IyTlpPSE52UzJ4aVQyTnZhbGw1UkZwbU0wMXVWRmxXZW5wVFowdEhabEJQTm5oTk0yRnljblkwZFRaNWRrNVZZekZpU1ROd1ZUTm5MakZWTlZsb2FHRm5Za3R0VDNZMU9WRmZZV0pWVlVFLmJjX0dKOWlhR3VxLWRSRXYwdjZLZFE0MjBVYzlkZ1cwNGNFekJmbTRfVlkiLCJleHAiOjE2NjM3MTAwODYsImlhdCI6MTY2MzcwOTc4Nn0.HJY7o7VNzlOqBSB7Hpa8-dNlcaIRmyb78uaJJUrpG-A",
"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.eyJhdXRoSW5kZXhWYWx1ZSI6IkxvZ2luIiwib3RrIjoibGg3Y2Q0NmtsbDNtdW1tdWE2c3VnNDliaDIiLCJhdXRoSW5kZXhUeXBlIjoic2VydmljZSIsInJlYWxtIjoiLyIsInNlc3Npb25JZCI6IipBQUpUU1FBQ01ESUFCSFI1Y0dVQUNFcFhWRjlCVlZSSUFBSlRNUUFDTURFLipleUowZVhBaU9pSktWMVFpTENKamRIa2lPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LlpY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U1oweHBUMUp5WlVoeWMxSjFjWEo1Y2pGTGVFVjZOVFp1U205a09XdFVhVzF1Vmtkb05sVldWREEzZFRSaGMxWnBNMjF6ZVd3ME9VeDJPV3BqV1ZGTVFYVkhVRUp3ZDNaTVJFVnhXRll4YzBKbmVtaExWaTFEU0VsQ2IyTlpPSE52UzJ4aVQyTnZhbGw1UkZwbU0wMXVWRmxXZW5wVFowdEhabEJQTm5oTk0yRnljblkwZFRaNWRrNVZZekZpU1ROd1ZUTm5MakZWTlZsb2FHRm5Za3R0VDNZMU9WRmZZV0pWVlVFLmJjX0dKOWlhR3VxLWRSRXYwdjZLZFE0MjBVYzlkZ1cwNGNFekJmbTRfVlkiLCJleHAiOjE2NjM3MTAwODYsImlhdCI6MTY2MzcwOTc4Nn0.HJY7o7VNzlOqBSB7Hpa8-dNlcaIRmyb78uaJJUrpG-A", "callbacks": [{"type": "NameCallback", "output": [{"name": "prompt", "value": "User Name"}], "input": [{"name": "IDToken1", "value": "SpiderMan_on_idm"}], "_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": "0KBZyj6EzuTTmLmVmrrK0tapFe0.*AAJTSQACMDIAAlNLABxybmRPZWQ2a1MzbnArQnQxTFJFWndxMW5rYU09AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"successUrl": "/am/console",
"realm": "/"
}
________________________________________________________________________________
[20/Sep/2022 21:36:27] 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: g9MedzgbgIVpJMw6qO5rEBnu" -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": "903A_q9MLWrFt4KikFs3Z7RvGC4.*AAJTSQACMDIAAlNLABxOQVF4S251OWlWSkVRZU5zTFdRNVE3Zm1iU2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*",
"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=903A_q9MLWrFt4KikFs3Z7RvGC4.*AAJTSQACMDIAAlNLABxOQVF4S251OWlWSkVRZU5zTFdRNVE3Zm1iU2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*" --cookie "route=1663709789.141.20866.112006|f60edb382037eb2df1e800d563ad78a7" --data '{"decision": "Allow", "csrf": "903A_q9MLWrFt4KikFs3Z7RvGC4.*AAJTSQACMDIAAlNLABxOQVF4S251OWlWSkVRZU5zTFdRNVE3Zm1iU2s9AAR0eXBlAANDVFMAAlMxAAIwMQ..*"}' "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': 'Tue, 20 Sep 2022 21:36:28 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=p0LoIm3Hk1HjbN-f3E6Y-3Y_F-8&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': '0736678a4de240ee8f1b6b6afd974f83'}
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": "p0LoIm3Hk1HjbN-f3E6Y-3Y_F-8"}' "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": "-H22yX2Np4RMoT0PICj9ASzi92A",
"scope": "fr:idm:*",
"token_type": "Bearer",
"expires_in": 3599
}
[http_cmd]: curl -H "Authorization: Bearer -H22yX2Np4RMoT0PICj9ASzi92A" --insecure -L -X DELETE "https://xlou.iam.xlou-cdm.engineeringpit.com/openidm/managed/user/15063b83-ee6f-49ab-9d9d-b1916ed11623"
[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": "15063b83-ee6f-49ab-9d9d-b1916ed11623",
"_rev": "d43810df-8f92-4af3-86d4-eba273f6940f-483",
"country": null,
"telephoneNumber": "6669876987",
"mail": "SpiderMan_on_idm@forgerock.com",
"memberOfOrgIDs": [],
"city": null,
"displayName": null,
"assignedDashboard": [],
[...]
"effectiveGroups": [],
"preferences": null,
"organizationName": null,
"givenName": "Peter",
"stateProvince": null,
"userName": "SpiderMan_on_idm",
"postalAddress": null,
"effectiveRoles": [],
"activateAccount": null
}
________________________________________________________________________________
[20/Sep/2022 21:36:29] Validation_user_idm post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped