From 367bec591d68e595bdf6bcd81bc476dc8f28d2d0 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Thu, 26 Sep 2024 14:15:25 +0530 Subject: [PATCH] MOSIP-34827 - Added testcases for L2 flow Signed-off-by: Mohanachandran S --- .../OAuthDetailsRequest.yml | 24 +++++++ .../OAuthDetailsWithClaimValueRequest.hbs | 63 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsWithClaimValueRequest.hbs diff --git a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsRequest.yml b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsRequest.yml index 0e385e193c..a903f2a35f 100644 --- a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsRequest.yml +++ b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsRequest.yml @@ -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: '{ + }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsWithClaimValueRequest.hbs b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsWithClaimValueRequest.hbs new file mode 100644 index 0000000000..669bc338aa --- /dev/null +++ b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3/OAuthDetailsWithClaimValueRequest.hbs @@ -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}}" + } +} \ No newline at end of file