diff --git a/automationtests/src/main/resources/esignet/AddIdentity/AddIdentity.yml b/automationtests/src/main/resources/esignet/AddIdentity/AddIdentity.yml index a412c66c44..44632fbb79 100644 --- a/automationtests/src/main/resources/esignet/AddIdentity/AddIdentity.yml +++ b/automationtests/src/main/resources/esignet/AddIdentity/AddIdentity.yml @@ -618,4 +618,31 @@ AddIdentity: }' output: '{ "status":"ACTIVATED" +}' + + ESignet_AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos: + endPoint: /idrepository/v1/identity/ + role: idrepo + restMethod: post + inputTemplate: esignet/AddIdentity/addIdentity_$LANGNUMBER$ + outputTemplate: esignet/AddIdentity/addIdentityResult + input: '{ + "value": "$BIOVALUE$", + "id": "mosip.id.create", + "registrationId": "$RID$", + "biometricReferenceId": "23452353", + "UIN": "$UIN$", + "dateOfBirth": "1992/04/15", + "postalCode": "14022", + "email": "ESignet_AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos@mosip.net", + "phone": "9876543210", + "referenceIdentityNumber": "6789545678878", + "version": "v1", + "introducerRID": "212124324784879", + "introducerUIN": "212124324784879", + "category": "individualBiometrics", + "requesttime": "$TIMESTAMP$" +}' + output: '{ + "status":"ACTIVATED" }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.hbs b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.hbs new file mode 100644 index 0000000000..43ef2d127f --- /dev/null +++ b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.hbs @@ -0,0 +1,15 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "request": { + "transactionId": "{{transactionId}}", + "individualId": "{{individualId}}", + "challengeList" : [ + { + "authFactorType" : "{{authFactorType}}", + "challenge" : "{{challenge}}", + "format": "alpha-numeric" + } + ] + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.yml b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.yml new file mode 100644 index 0000000000..42042646c3 --- /dev/null +++ b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC.yml @@ -0,0 +1,33 @@ +AuthenticateUserV3NegTC: + ESignet_AuthenticateUserNegTC_V3_AuthToken_Xsrf__uin_Otp_Valid_Smoke: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTC + outputTemplate: esignet/AuthenticateUserV3/AuthenticateUserResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos_UIN$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:AddIdentity_L2_Valid_Parameters_smoke_Neg_Pos_UIN$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "$IGNORE$", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTCResult.hbs b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTCResult.hbs new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/automationtests/src/main/resources/esignet/AuthenticateUserV3NegTC/AuthenticateUserNegTCResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.hbs b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.hbs new file mode 100644 index 0000000000..ead77da28f --- /dev/null +++ b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.hbs @@ -0,0 +1,4 @@ +{ + "encodedHash": "{{encodedHash}}", + "transactionId": "{{transactionId}}" +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.yml b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.yml new file mode 100644 index 0000000000..83ca588df0 --- /dev/null +++ b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsNegTC.yml @@ -0,0 +1,224 @@ +ClaimDetailsNegTC: + ESignet_ClaimDetailsNegTC_Invalid_EncodedHash: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "ggfhjkhgyydiytf", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Null_EncodedHash: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": null, + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Empty_EncodedHash: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Space_Val_EncodedHash: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": " ", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Missing_EncodedHash: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$REMOVE$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_invalid_TransactionId: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": "aojoidncpoailf" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Null_Val_TransactionId: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": null + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Empty_TransactionId: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": "" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Space_Val_TransactionId: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": " " + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + + ESignet_ClaimDetailsNegTC_Missing_TransactionId: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": "$REMOVE$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_ClaimDetailsNegTC_AuthToken_Xsrf_uin_Valid_Smoke: + endPoint: /v1/esignet/authorization/claim-details + role: resident + restMethod: get + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsNegTC + outputTemplate: esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$" + }' + output: '{ +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC.hbs b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC.hbs new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/automationtests/src/main/resources/esignet/ClaimDetailsNegTC/ClaimDetailsResultNegTC.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegResultTC.hbs b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegResultTC.hbs new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegResultTC.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.hbs b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.hbs new file mode 100644 index 0000000000..009f4effde --- /dev/null +++ b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.hbs @@ -0,0 +1,39 @@ +{ + "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": "{{trust_framework}}"} + }, + "claims": { + "email": { + "essential": true + } + } + } + ] + }, + "id_token": {} + }, + "nonce" : "{{nonce}}", + "state" : "{{state}}", + "claimsLocales" : "{{claimsLocales}}", + "uiLocales" : "{{uiLocales}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.yml b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.yml new file mode 100644 index 0000000000..1bd2e00820 --- /dev/null +++ b/automationtests/src/main/resources/esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC.yml @@ -0,0 +1,925 @@ +OAuthDetailsRequestV3Neg: + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_RequestTime: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "apknktokd", + "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", + "trust_framework": "jp_aml" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "requestTime: invalid_request" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Null_value_RequestTime: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": null, + "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: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "requestTime: invalid_request" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_empty_RequestTime: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "", + "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: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "requestTime: invalid_request" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Space_value_RequestTime: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": " ", + "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: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "requestTime: invalid_request" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_missing_RequestTime: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$REMOVE$", + "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: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "requestTime: invalid_request" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_ClientID: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "jkjdangjfkdjnlkfkgjdsfnlkfjdkf", + "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: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "invalid_client_id" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Null_ClientID: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": null, + "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: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "request.clientId: invalid_client_id" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_empty_ClientID: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "", + "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: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "request.clientId: invalid_client_id" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Space_value_ClientID: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": " ", + "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: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "request.clientId: invalid_client_id" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_missing_ClientID: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$REMOVE$", + "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: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "request.clientId: invalid_client_id" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_Scope: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "aegaegegadd", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "request.scope: invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Null_Scope_value: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": null, + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "request.scope: invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_empty_Scope: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "request.scope: invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Space_value_Scope: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": " ", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "request.scope: invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_missing_Scope: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "$REMOVE$", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "request.scope: invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_ResponseType: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "tfyjii", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "request.responseType: invalid_response_type" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Null_ResponseType_value: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": null, + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "request.responseType: invalid_response_type" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_empty_ResponseType: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "request.responseType: invalid_response_type" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Space_value_ResponseType: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": " ", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "request.responseType: invalid_response_type" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_missing_ResponseType: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "$REMOVE$", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "request.responseType: invalid_response_type" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_RedirectURI: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "adaklfjfods", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "request.redirectUri: invalid_redirect_uri" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Null_RedirectURI_value: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": null, + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "request.redirectUri: invalid_redirect_uri" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_empty_RedirectURI: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": $TIMESTAMP$, + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "request.redirectUri: invalid_redirect_uri" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_Space_value_RedirectURI: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": " ", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "request.redirectUri: invalid_redirect_uri" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_missing_RedirectURI: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "$REMOVE$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "request.redirectUri: invalid_redirect_uri" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_Display: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "ajodinvalidoaoi", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_display", + "errorMessage": "request.display: invalid_display" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_Prompt: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "oaidnoadi", + "acrValues": "mosip:idp:acr:generated-code", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_prompt", + "errorMessage": "request.prompt: invalid_prompt" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_acrValues: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "0brnxh_duaXqCa-HW4kSeljeMp0qGOmqh4tm_zFKVgY", + "scope": "openid profile", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "malslinakjol", + "nonce": "973eieljzng", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_acr", + "errorMessage": "request.acr: invalid_acr" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_nonce: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + 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": "aod;ofald", + "state": "urlInfo1724138417665", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_nonce", + "errorMessage": "request.nonce: invalid_nonce" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_state: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + 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": "aodfjlf", + "claimsLocales": "en", + "uiLocales": "en-US" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_state", + "errorMessage": "request.state: invalid_state" + } + ] +}' + + ESignet_OAuthDetailsRequestNegTC_V3_with_invalid_uiLocales: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + outputTemplate: esignet/error + 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": "adfa", +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_ui_locales", + "errorMessage": "request.ui_locales: invalid_ui_locales" + } + ] +}' + + ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/OAuthDetailsRequestV3NegTC/OAuthDetailsRequestNegTC + 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", + "trust_framework": "jp_aml" +}' + output: '{ + +}' \ No newline at end of file diff --git a/automationtests/testNgXmlFiles/esignetSuite.xml b/automationtests/testNgXmlFiles/esignetSuite.xml index 1122dde1e2..4b9968a165 100644 --- a/automationtests/testNgXmlFiles/esignetSuite.xml +++ b/automationtests/testNgXmlFiles/esignetSuite.xml @@ -1032,4 +1032,29 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file