Skip to content

Commit

Permalink
MOSIP-34827 - Added test cases for L2 flow api's
Browse files Browse the repository at this point in the history
Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s committed Oct 15, 2024
1 parent a6f7a34 commit 9ad11a8
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,28 @@ OAuthDetailsRequestV3:
}'
output: '{
}'

ESignet_OAuthDetailsRequest_V3_WithClaimValues_AuthToken_Xsrf_uin_all_Valid_Smoke_sid:
endPoint: /v1/esignet/authorization/v3/oauth-details
role: resident
restMethod: post
checkErrorsOnlyInResponse: true
inputTemplate: esignet/OAuthDetailsRequestV3/OAuthDetailsWithClaimValueRequest
input: '{
"requestTime": "$TIMESTAMP$",
"clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY",
"scope": "openid profile",
"responseType": "code",
"redirectUri": "$IDPREDIRECTURI$",
"display": "popup",
"prompt": "login",
"acrValues": "mosip:idp:acr:generated-code",
"nonce": "973eieljzng",
"state": "urlInfo1724138417665",
"claimsLocales": "en",
"uiLocales": "en-US"
}'
output: '{
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"requestTime": "{{requestTime}}",
"request": {
"clientId": "{{clientId}}",
"scope": "{{scope}}",
"responseType": "{{responseType}}",
"redirectUri": "{{redirectUri}}",
"display": "{{display}}",
"prompt": "{{prompt}}",
"acrValues": "{{acrValues}}",
"claims": {
"userinfo": {
"name": {
"essential": false
},
"phone_number": {
"essential": true
},
"verified_claims": [
{
"verification": {
"trust_framework": {
"value": ["de_aml", "jp_aml"]
},
"assurance-level": {
"value": "high"
},
"time": {
"max_age": 63113852
},
"evidence": [
{"type": { "value": "document" }},
{"method": { "value": "test" }}
]
},
"claims": {
"given_name": {
"value":["automation", "test"],
"purpose":"Name given by user",
"essential": true
},
"name": {
"value": "automation",
"values":["ab","cd"]
},
"phone_number": {
"value": "1234567890"
},
"email": {
"essential": true
}
}
}
]
},
"id_token": {}
},
"nonce" : "{{nonce}}",
"state" : "{{state}}",
"claimsLocales" : "{{claimsLocales}}",
"uiLocales" : "{{uiLocales}}"
}
}

0 comments on commit 9ad11a8

Please sign in to comment.