From 8eae8277011c219d9799d3522438b6d1e74f2eb6 Mon Sep 17 00:00:00 2001 From: Mohanachandran S Date: Fri, 3 Jan 2025 13:09:47 +0530 Subject: [PATCH] ES-2132 - updated the empty claim value as null instead of empty array Signed-off-by: Mohanachandran S --- .../OAuthDetailsRequestLinkedConsent.yml | 31 ++++++++++++++++++- .../OAuthDetailsRequestNoClaims.hbs | 2 +- .../OAuthDetailsRequestNullClaims.hbs | 16 ++++++++++ 3 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNullClaims.hbs diff --git a/api-test/src/main/resources/esignet/LinkedConsent/OAuthDetailsRequestLinkedConsent/OAuthDetailsRequestLinkedConsent.yml b/api-test/src/main/resources/esignet/LinkedConsent/OAuthDetailsRequestLinkedConsent/OAuthDetailsRequestLinkedConsent.yml index f9067ce07..85a42d234 100644 --- a/api-test/src/main/resources/esignet/LinkedConsent/OAuthDetailsRequestLinkedConsent/OAuthDetailsRequestLinkedConsent.yml +++ b/api-test/src/main/resources/esignet/LinkedConsent/OAuthDetailsRequestLinkedConsent/OAuthDetailsRequestLinkedConsent.yml @@ -55,7 +55,7 @@ OAuthDetailsRequestLinkedConsent: role: resident checkErrorsOnlyInResponse: true restMethod: post - inputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims + inputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestNullClaims outputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestResult input: '{ "requestTime": "$TIMESTAMP$", @@ -72,4 +72,33 @@ OAuthDetailsRequestLinkedConsent: }' output: '{ +}' + + ESignet_OAuthDetailsRequest_LinkAuth_Consent_NoClaim_Neg: + endPoint: /v1/esignet/authorization/oauth-details + description: Oauthdetails request with linkAuth consent and no claims + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "openid resident-service profile", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:linked-wallet", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en" +}' + output: '{ + "errors": [ + { + "errorCode": "unknown_error", + "errorMessage": "$IGNORE$" + } + ] }' \ No newline at end of file diff --git a/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims.hbs b/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims.hbs index e3f753c95..a21703064 100644 --- a/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims.hbs +++ b/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNoClaims.hbs @@ -8,7 +8,7 @@ "display": "{{display}}", "prompt": "{{prompt}}", "acrValues": "{{acrValues}}", - "claims": null, + "claims": {}, "nonce": "{{nonce}}", "state": "{{state}}", "claimsLocales": "{{claimsLocales}}" diff --git a/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNullClaims.hbs b/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNullClaims.hbs new file mode 100644 index 000000000..e3f753c95 --- /dev/null +++ b/api-test/src/main/resources/esignet/OAuthDetailsRequest/OAuthDetailsRequestNullClaims.hbs @@ -0,0 +1,16 @@ +{ + "requestTime": "{{requestTime}}", + "request": { + "clientId": "{{clientId}}", + "scope": "{{scope}}", + "responseType": "{{responseType}}", + "redirectUri": "{{redirectUri}}", + "display": "{{display}}", + "prompt": "{{prompt}}", + "acrValues": "{{acrValues}}", + "claims": null, + "nonce": "{{nonce}}", + "state": "{{state}}", + "claimsLocales": "{{claimsLocales}}" + } +} \ No newline at end of file