From 2dfc417dcdd697ab3cb4a746c9ea96a7edd43d1f Mon Sep 17 00:00:00 2001 From: NitinHegde Date: Wed, 9 Oct 2024 00:17:00 +0530 Subject: [PATCH] MOSIP-35937 L2 Flow Negative Test Cases Signed-off-by: NitinHegde --- .../IDTAuthenticationNegTC.hbs | 18 + .../IDTAuthenticationNegTC.yml | 563 ++++++++++++ .../IDTAuthenticationNegTCResult.hbs | 1 + .../PrepareSignupRedirectNegTC.hbs | 8 + .../PrepareSignupRedirectNegTC.yml | 376 ++++++++ .../PrepareSignupRedirectNegTCResult.hbs | 1 + .../SignupAuthorizeCodeNegTC.hbs | 16 + .../SignupAuthorizeCodeNegTC.yml | 249 +++++ .../SignupAuthorizeCodeNegTCResult.hbs | 1 + .../SignupAuthorizeNegTC.hbs | 15 + .../SignupAuthorizeNegTC.yml | 870 ++++++++++++++++++ .../SignupAuthorizeNegTCResult.hbs | 1 + .../testNgXmlFiles/esignetSuite.xml | 31 + 13 files changed, 2150 insertions(+) create mode 100644 automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs create mode 100644 automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml create mode 100644 automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTCResult.hbs create mode 100644 automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.hbs create mode 100644 automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.yml create mode 100644 automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTCResult.hbs create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.hbs create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.yml create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTCResult.hbs create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.hbs create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.yml create mode 100644 automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult.hbs diff --git a/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs new file mode 100644 index 00000000000..f48997ac5b2 --- /dev/null +++ b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs @@ -0,0 +1,18 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "pathFragmentCookie": "{{pathFragmentCookie}}", + "pathFragmentCookieTransactionId": "{{pathFragmentCookieTransactionId}}", + "idtToken": "{{idtToken}}", + "request": { + "transactionId": "{{transactionId}}", + "individualId": "{{individualId}}", + "challengeList" : [ + { + "authFactorType" : "{{authFactorType}}", + "challenge" : "{{challenge}}", + "format": "base64url-encoded-json" + } + ] + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml new file mode 100644 index 00000000000..64f00479d4b --- /dev/null +++ b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml @@ -0,0 +1,563 @@ +IDTAuthenticationNegTC: + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": " ", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withoutTransactionId_request_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$REMOVE$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_transactionIDReceivedFromOtherAPIOAuth_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_alreadyCompleted_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "wGSAtOrEoQ_x_AFvS_uwjIkruvVXVO5hOYhc7izVDyc", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withoutAuthFromSendOTP_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$REMOVE$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_transactionId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "abcdef", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_authFactorType_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "abcd", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_authFactorType_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_authFactorType_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "$REMOVE$", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_authFactorType_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : " ", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_Empty_challenge_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "" +}' + output: '{ + "errors": [ + { + "errorCode": "unknown_error" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2022-11-08T06:35:53", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_diffFormat_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2022-11-07T06:51:30.195Z", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$REMOVE$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": " ", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalidValue_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "requestinvalid", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_numericString_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "123456789", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_without_request_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withOnlyIndividualID_request_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$REMOVE$", + "requestTime": "$REMOVE$", + "pathFragmentCookie": "$REMOVE$", + "pathFragmentCookieTransactionId": "$REMOVE$", + "idtToken": "$REMOVE$", + "transactionId": "$REMOVE$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "$REMOVE$", + "challenge" : "$REMOVE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke: + endPoint: /v1/esignet/authorization/v3/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTCResult + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$" +}' + output: '{ + +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTCResult.hbs b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTCResult.hbs new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/automationtests/src/main/resources/esignet/IDTAuthenticationNegTC/IDTAuthenticationNegTCResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.hbs b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.hbs new file mode 100644 index 00000000000..042e820a021 --- /dev/null +++ b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.hbs @@ -0,0 +1,8 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "request": { + "transactionId": "{{transactionId}}", + "pathFragment": "{{pathFragment}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.yml b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.yml new file mode 100644 index 00000000000..22782a76055 --- /dev/null +++ b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC.yml @@ -0,0 +1,376 @@ +PrepareSignupRedirectNegTC: + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_without_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + 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$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_empty_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_emptyString_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": " ", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_invalid_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "invalidRequest", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_numeric_As_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "12345", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_invalidTimeFormat_requestTime_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "Jun 09 2023 15:28:14", + "transactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "invalid_request" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_empty_requestObject_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "", + "transactionId": "", + "pathFragment": "" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_invalid_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "1234567890", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_without_transactionId_parameter_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_unAuthenticated_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "aTcWUCX2K4Rlx43UEm0bgkB0r0el9_2jWPclsfjebBc", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_alreadyAuthenticated_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "aTcWUCX2K4Rlx43UEm0bgkB0r0el9_2jWPclsfjebRc", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_null_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": null, + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_transactionIDReceivedOtherAPI_thatOAuthDetail_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "bHcqVsIp11X2GBWu2PrKFePQKYYHIuo6eafYnRmHey0", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_expired_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "Lb3c_7al_WOAqbbDyU4aSxxofOcEHLC9Y3qSgSCBB7M", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_empty_transactionId_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": " ", + "pathFragment": "path-fragment" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "invalid_transaction" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_without_pathFragment_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + 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$", + "pathFragment": "$REMOVE$" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_path_fragment", + "errorMessage": "invalid_path_fragment" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_null_pathFragment_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + 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$", + "pathFragment": null + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_path_fragment", + "errorMessage": "invalid_path_fragment" + } + ] +}' + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_empty_pathFragment_Neg_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/error + 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$", + "pathFragment": "" + }' + output: '{ + "errors": [ + { + "errorCode": "invalid_path_fragment", + "errorMessage": "invalid_path_fragment" + } + ] +}' + + ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid: + endPoint: /v1/esignet/authorization/prepare-signup-redirect + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTC + outputTemplate: esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTCResult + 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$", + "pathFragment": "path-fragment" + }' + output: '{ +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTCResult.hbs b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTCResult.hbs new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/automationtests/src/main/resources/esignet/PrepareSignupRedirectNegTC/PrepareSignupRedirectNegTCResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.hbs b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.hbs new file mode 100644 index 00000000000..e3704b3ec52 --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.hbs @@ -0,0 +1,16 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "pathFragmentCookie": "{{pathFragmentCookie}}", + "pathFragmentCookieTransactionId": "{{pathFragmentCookieTransactionId}}", + "request": { + "transactionId": "{{transactionId}}", + "permittedAuthorizeScopes": [], + "acceptedClaims" : [ + {{#each acceptedClaims}} + "{{channel}}" + {{#unless @last}},{{/unless}} + {{/each}} + ] + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.yml b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.yml new file mode 100644 index 00000000000..fc89f9718db --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC.yml @@ -0,0 +1,249 @@ +SignupAuthorizeCodeNegTC: + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_empty_acceptedClaims_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: ""},{channel: ""}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_accepted_claim", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_missing_acceptedClaims_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": "$REMOVE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_accepted_claim", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_invalid_transactionId_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "invalidTransactionID", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_without_transactionId_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_alreadyCompleted_transactionId_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "Rtf-lPuIJfXUg9jaqJdOeuospISzuDJ7_PxV6fEvX7g", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_emptyString_transactionId_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": " ", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_empty_requestTime_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_diff_requestTime_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2022-11-07T06:51:30.195Z", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_future_requestTime_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2050-11-07T06:51:30.195Z", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_AuthToken_Xsrf_uin_invalid_requestTime_Neg: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/error + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2022-11-08T06:35:53", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeCodeNegTC_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTC + outputTemplate: esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTCResult + input: '{ + "encodedHash": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "$ID:SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "acceptedClaims": [{channel: "email"},{channel: "phone_number"}] +}' + output: '{ + +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTCResult.hbs b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTCResult.hbs new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeCodeNegTC/SignupAuthorizeCodeNegTCResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.hbs b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.hbs new file mode 100644 index 00000000000..95c858e2b80 --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.hbs @@ -0,0 +1,15 @@ +{ + "requestTime": "{{requestTime}}", + "pathFragmentCookieTransactionId": "{{pathFragmentCookieTransactionId}}", + "pathFragmentCookie": "{{pathFragmentCookie}}", + "request": { + "clientId": "{{clientId}}", + "scope": "{{scope}}", + "responseType": "{{responseType}}", + "redirectUri": "{{redirectUri}}", + "acrValues": "{{acrValues}}", + "state" : "{{state}}", + "uiLocales" : "{{uiLocales}}", + "idTokenHint" : "{{idTokenHint}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.yml b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.yml new file mode 100644 index 00000000000..eb6e08fce9c --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC.yml @@ -0,0 +1,870 @@ +SignupAuthorizeNegTC: + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_clientId_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "reateOIDCClient_all_Valid_Smoke_sid_cl", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_clientId_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_clientId_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "$REMOVE$", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_null_clientId_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "null", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_client_id", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_redirectUri_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_redirectUri_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "https://health-services.com", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_redirectUri_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$REMOVE$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_redirect_uri", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_responseType_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_responseType_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "decode", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_responseType_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "$REMOVE$", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_null_responseType_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "null", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_response_type", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_scope_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "email", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_withoutSpace_scope_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openidemailaddressphone", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_multipleSpacesInBetween_scope_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": " openid email address phone ", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_scope_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "$REMOVE$", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_scope_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_scope", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_acrValues_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:static", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_acrValues_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_acrValues_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "$REMOVE$", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalidFormat_acrValues_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "abcd", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalidFormat_acrValues_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "abcd", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_uiLocales_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "abcd", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_uiLocales_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_uiLocales_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "$REMOVE$", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_otherLanguage_uiLocales_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "kn", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_state_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "$$@#fdhfdkl", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_state_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "$REMOVE$", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_exceedingRange_state_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "aa1hmnkz7ee0c1te988gw9bkos5pb4mi830uf6wrxj6hs80z07rmtwpzvjr9qjhgw8aw2rf9iljprvvxxh4y94je13gl4vr9vwaq358tnov5bh3likbef6elkqnqvnn4gu9fh1pzui2b459m0xfwjdsjlinll1s6kayk29d01i3vx1uagewcoc39ssxm4feyci06zoimd6ot3c0w3w8genv1d0hk4ni9ym1mjkwclffj5tfiglipy9sn5fyjqway9c6y", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_empty_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_diffFormat_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "2022-11-07T06:51:30.195Z", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_invalid_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "2022-11-08T06:35:53", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_missing_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$REMOVE$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_emptyString_requestTime_Neg: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/error + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": " ", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request", + "errorMessage": "$IGNORE$" + } + ] +}' + ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid: + endPoint: /v1/esignet/authorization/v3/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTC + outputTemplate: esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult + input: '{ + "pathFragmentCookie": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "requestTime": "$TIMESTAMP$", + "clientId": "mosip-signup-oauth-client", + "scope": "openid", + "responseType": "code", + "redirectUri": "$SIGNUPREDIRECTURI$", + "acrValues": "mosip:idp:acr:id-token", + "state": "urlInfo1724138417665", + "uiLocales": "en", + "idTokenHint": "$ID:PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$" +}' + output: '{ + +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult.hbs b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult.hbs new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/automationtests/src/main/resources/esignet/SignupAuthorizeNegTC/SignupAuthorizeNegTCResult.hbs @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/automationtests/testNgXmlFiles/esignetSuite.xml b/automationtests/testNgXmlFiles/esignetSuite.xml index 1122dde1e29..e88f4c7d5d6 100644 --- a/automationtests/testNgXmlFiles/esignetSuite.xml +++ b/automationtests/testNgXmlFiles/esignetSuite.xml @@ -1032,4 +1032,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file