Skip to content

Commit

Permalink
ES-2132 - updated the empty claim value as null instead of empty array
Browse files Browse the repository at this point in the history
Signed-off-by: Mohanachandran S <[email protected]>
  • Loading branch information
mohanachandran-s committed Jan 3, 2025
1 parent d934c38 commit 8eae827
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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$",
Expand All @@ -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$"
}
]
}'
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"display": "{{display}}",
"prompt": "{{prompt}}",
"acrValues": "{{acrValues}}",
"claims": null,
"claims": {},
"nonce": "{{nonce}}",
"state": "{{state}}",
"claimsLocales": "{{claimsLocales}}"
Expand Down
Original file line number Diff line number Diff line change
@@ -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}}"
}
}

0 comments on commit 8eae827

Please sign in to comment.