diff --git a/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs index f48997ac..21d0b5ec 100644 --- a/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs +++ b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.hbs @@ -11,7 +11,7 @@ { "authFactorType" : "{{authFactorType}}", "challenge" : "{{challenge}}", - "format": "base64url-encoded-json" + "format": "{{format}}" } ] } diff --git a/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml index b334cc55..513b391a 100644 --- a/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml +++ b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC.yml @@ -1,8 +1,8 @@ IDTAuthenticationNegTC: - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_empty_transactionId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_01 - description: Create transaction Id and consentAction with empty transaction id - Failure + description: Perform IDT authentication with empty transaction id - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -17,7 +17,8 @@ IDTAuthenticationNegTC: "transactionId": "", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -26,10 +27,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_emptyString_transactionId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_02 - description: Create transaction Id and consentAction with emptyString transaction id - Failure + description: Perform IDT authentication with emptyString transaction id - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -44,7 +45,8 @@ IDTAuthenticationNegTC: "transactionId": " ", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -53,10 +55,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withoutTransactionId_request_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_withoutTransactionId_request_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_03 - description: Create transaction Id and consentAction without transaction id - Failure + description: Perform IDT authentication without transaction id - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -71,7 +73,8 @@ IDTAuthenticationNegTC: "transactionId": "$REMOVE$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -80,10 +83,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_transactionIDReceivedFromOtherAPIOAuth_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_transactionIDReceivedFromOtherAPIOAuth_transactionId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_04 - description: Create transaction Id and consentAction with transaction id from other API - Failure + description: Perform IDT authentication with transaction id from other API - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -98,7 +101,8 @@ IDTAuthenticationNegTC: "transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -107,10 +111,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_alreadyCompleted_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_alreadyCompleted_transactionId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_05 - description: Create transaction Id and consentAction with already completed transaction id - Failure + description: Perform IDT authentication with already completed transaction id - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -125,7 +129,8 @@ IDTAuthenticationNegTC: "transactionId": "wGSAtOrEoQ_x_AFvS_uwjIkruvVXVO5hOYhc7izVDyc", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -134,10 +139,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withoutAuthFromSendOTP_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_transactionId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_06 - description: Create transaction Id and consentAction withoutAuthFromSendOTP transaction id - Failure + description: Perform IDT authentication with invalid transaction id - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -149,10 +154,11 @@ IDTAuthenticationNegTC: "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", - "transactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "transactionId": "abcdef", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -161,10 +167,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_authFactorType_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_07 - description: Create transaction Id and consentAction with missing transaction id - Failure + description: Perform IDT authentication with invalid auth factor type - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -176,22 +182,23 @@ IDTAuthenticationNegTC: "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", - "transactionId": "$REMOVE$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "abcd", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_transaction" + "errorCode": "invalid_auth_factor_type" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_transactionId_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_empty_authFactorType_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_08 - description: Create transaction Id and consentAction with invalid transaction id - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_8 + description: Perform IDT authentication with empty auth factor type - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -203,22 +210,23 @@ IDTAuthenticationNegTC: "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", - "transactionId": "abcdef", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_transaction" + "errorCode": "invalid_auth_factor_type" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_authFactorType_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_missing_authFactorType_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_09 - description: Create transaction Id and consentAction with invalid auth factor type - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_9 + description: Perform IDT authentication with missing auth factor type - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -232,8 +240,9 @@ IDTAuthenticationNegTC: "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "abcd", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "$REMOVE$", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -242,10 +251,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_authFactorType_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_emptyString_authFactorType_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_10 - description: Create transaction Id and consentAction with empty auth factor type - Failure + description: Perform IDT authentication with emptyString auth factor type - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -259,8 +268,9 @@ IDTAuthenticationNegTC: "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : " ", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -269,10 +279,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_authFactorType_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_Empty_challenge_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_11 - description: Create transaction Id and consentAction with missing auth factor type - Failure + description: Perform IDT authentication with empty challenge - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -286,20 +296,21 @@ IDTAuthenticationNegTC: "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "$REMOVE$", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "IDT", + "challenge" : "", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_auth_factor_type" + "errorCode": "invalid_challenge" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_authFactorType_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_12 - description: Create transaction Id and consentAction with emptyString auth factor type - Failure + description: Perform IDT authentication with invalid requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -307,26 +318,27 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "$TIMESTAMP$", + "requestTime": "2022-11-08T06:35:53", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : " ", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_auth_factor_type" + "errorCode": "invalid_request" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_Empty_challenge_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_diffFormat_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_13 - description: Create transaction Id and consentAction with empty challenge - Failure + description: Perform IDT authentication with diff format requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -334,26 +346,27 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "$TIMESTAMP$", + "requestTime": "2022-11-07T06:51:30.195Z", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "unknown_error" + "errorCode": "invalid_request" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_missing_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_14 - description: Create transaction Id and consentAction with invalid requestTime - Failure + description: Perform IDT authentication with missing requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -361,14 +374,15 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "2022-11-08T06:35:53", + "requestTime": "$REMOVE$", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -377,10 +391,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalid_diffFormat_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_empty_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_15 - description: Create transaction Id and consentAction with diff format requestTime - Failure + description: Perform IDT authentication with empty requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -388,14 +402,15 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "2022-11-07T06:51:30.195Z", + "requestTime": "", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -404,10 +419,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_missing_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_emptyString_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_16 - description: Create transaction Id and consentAction with missing requestTime - Failure + description: Perform IDT authentication with emptyString requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -415,14 +430,15 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "$REMOVE$", + "requestTime": " ", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -431,10 +447,10 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_empty_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_numericString_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_17 - description: Create transaction Id and consentAction with empty requestTime - Failure + description: Perform IDT authentication with numericString as requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -442,14 +458,15 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "", + "requestTime": "123456789", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -458,10 +475,84 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_emptyString_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_without_request_Neg: endPoint: /v1/esignet/authorization/v3/authenticate uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_18 - description: Create transaction Id and consentAction with emptyString requestTime - Failure + description: Perform IDT authentication without request - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_withOnlyIndividualID_request_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_19 + description: Perform IDT authentication with only individualId - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$REMOVE$", + "requestTime": "$REMOVE$", + "pathFragmentCookie": "$REMOVE$", + "pathFragmentCookieTransactionId": "$REMOVE$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$REMOVE$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "$REMOVE$", + "challenge" : "$REMOVE$", + "format" : "$REMOVE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_transaction" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_Only_transactionId_inRequest_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_20 + description: Perform IDT authentication with only transaction id - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$REMOVE$", + "requestTime": "$REMOVE$", + "pathFragmentCookie": "$REMOVE$", + "pathFragmentCookieTransactionId": "$REMOVE$", + "idtToken": "$REMOVE$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$REMOVE$", + "authFactorType" : "$REMOVE$", + "challenge" : "$REMOVE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_request" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_authFactorType_inLowerCase_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_21 + description: Perform IDT authentication with Lower Case authFactorType - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -469,26 +560,27 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": " ", + "requestTime": "$TIMESTAMP$", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", - "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "authFactorType" : "idt", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_request" + "errorCode": "invalid_auth_factor_type" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_invalidValue_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_authFactorType_inCamelCase_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_19 - description: Create transaction Id and consentAction with invalid Value as requestTime - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_22 + description: Perform IDT authentication with Camel Case authFactorType - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -496,26 +588,55 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "requestinvalid", + "requestTime": "$TIMESTAMP$", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "Idt", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_Only_authFactorType_inRequest_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_23 + description: Perform IDT authentication with only authFactorType - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$REMOVE$", + "requestTime": "$REMOVE$", + "pathFragmentCookie": "$REMOVE$", + "pathFragmentCookieTransactionId": "$REMOVE$", + "idtToken": "$REMOVE$", + "transactionId": "$REMOVE$", + "individualId": "$REMOVE$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$REMOVE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_request" + "errorCode": "invalid_transaction" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_numericString_requestTime_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_otherFromCurrentDate_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_20 - description: Create transaction Id and consentAction with numericString as requestTime - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_24 + description: Perform IDT authentication with invalid requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -523,14 +644,15 @@ IDTAuthenticationNegTC: outputTemplate: signup/error input: '{ "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", - "requestTime": "123456789", + "requestTime": "2044-12-03T08:03:28.207Z", "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -539,28 +661,38 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_without_request_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_pastTime_as_requestTime_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_21 - description: Create transaction Id and consentAction without request - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_25 + description: Perform IDT authentication with pastTime as requestTime - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC outputTemplate: signup/error input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "2014-12-03T08:03:28.207Z", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ { - "errorCode": "invalid_transaction" + "errorCode": "invalid_request" } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_withOnlyIndividualID_request_Neg: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_withoutRequestObject_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_22 - description: Create transaction Id and consentAction with only individualId - Failure + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_26 + description: Perform IDT authentication without RequestObject - Failure role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -573,9 +705,10 @@ IDTAuthenticationNegTC: "pathFragmentCookieTransactionId": "$REMOVE$", "idtToken": "$REMOVE$", "transactionId": "$REMOVE$", - "individualId": "$IDTINDIVIUALID$", + "individualId": "$REMOVE$", "authFactorType" : "$REMOVE$", - "challenge" : "$REMOVE$" + "challenge" : "$REMOVE$", + "format" : "base64url-encoded-json" }' output: '{ "errors": [ @@ -584,10 +717,371 @@ IDTAuthenticationNegTC: } ] }' - Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke: + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_empty_individualId_Neg: endPoint: /v1/esignet/authorization/v3/authenticate - uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_23 - description: Create transaction Id and consentAction with valid details - Success + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_27 + description: Perform IDT authentication with empty individualId - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_identifier" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_emptyString_individualId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + description: Perform IDT authentication with empty string individualId - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": " ", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_identifier" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_without_individualId_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_29 + description: Perform IDT authentication with empty individualId - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$REMOVE$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_identifier" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_without_challenge_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_30 + description: Perform IDT authentication with without challenge - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$REMOVE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_invalid_challenge_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_31 + description: Perform IDT authentication with invalid challenge - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "invalidChallenge", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_without_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_32 + description: Perform IDT authentication with without challengeList - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTCwithoutChallengeList + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_no_of_challenges" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_withOnlyChallengeIn_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_33 + description: Perform IDT authentication with empty challenge - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "", + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_emptyString_challenge_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_34 + description: Perform IDT authentication with empty String challenge - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : " ", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_withOnlyFormatIn_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_35 + description: Perform IDT authentication with only format in challenge list- Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "$REMOVE$", + "challenge" : "$REMOVE$", + "format" : "base64url-encoded-json" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_auth_factor_type" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_without_Format_In_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_36 + description: Perform IDT authentication without format in challenge list - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "$REMOVE$" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge_format" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_empty_format_In_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_37 + description: Perform IDT authentication with empty format in challenge list - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge_format" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_emptyString_format_In_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_38 + description: Perform IDT authentication with empty string format in challenge list - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : " " +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge_format" + } + ] +}' + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_with_invalid_format_In_challengeList_Neg: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_39 + description: Perform IDT authentication with invalid format in challenge list - Failure + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: signup/IDTAuthenticationNegTC/IDTAuthenticationNegTC + outputTemplate: signup/error + input: '{ + "encodedHash": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "pathFragmentCookie": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_pathFragmentCookie$", + "pathFragmentCookieTransactionId": "$ID:ESignet_OAuthDetailsRequest_V3_Neg_AuthToken_Xsrf_uin_all_Valid_Smoke_sid_transactionId$", + "idtToken": "$ID:ESignet_PrepareSignupRedirectNegTC_AuthToken_Xsrf_STransId_uin_Otp_Valid_posNeg_Smoke_sid_idToken$", + "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", + "individualId": "$IDTINDIVIUALID$", + "authFactorType" : "IDT", + "challenge" : "$IDTCHALLENGE$", + "format" : "alpha-numeric" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_challenge_format" + } + ] +}' + + Signup_ESignet_IDTAuthenticationNegTC_AuthToken_Xsrf_all_Valid_PosNeg_Smoke: + endPoint: /v1/esignet/authorization/v3/authenticate + uniqueIdentifier: TC_ESignet_IDTAuthenticationNegTC_POSITIVE + description: Perform IDT authentication with valid details - Success role: resident restMethod: post checkErrorsOnlyInResponse: true @@ -602,7 +1096,8 @@ IDTAuthenticationNegTC: "transactionId": "$ID:ESignet_SignupAuthorizeNegTC_OAuthDetailsRequest_AuthToken_Xsrf_uin_all_Valid_PosNeg_Smoke_sid_transactionId$", "individualId": "$IDTINDIVIUALID$", "authFactorType" : "IDT", - "challenge" : "$IDTCHALLENGE$" + "challenge" : "$IDTCHALLENGE$", + "format" : "base64url-encoded-json" }' output: '{ diff --git a/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTCwithoutChallengeList.hbs b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTCwithoutChallengeList.hbs new file mode 100644 index 00000000..d49f7171 --- /dev/null +++ b/api-test/src/main/resources/signup/IDTAuthenticationNegTC/IDTAuthenticationNegTCwithoutChallengeList.hbs @@ -0,0 +1,11 @@ +{ + "encodedHash": "{{encodedHash}}", + "requestTime": "{{requestTime}}", + "pathFragmentCookie": "{{pathFragmentCookie}}", + "pathFragmentCookieTransactionId": "{{pathFragmentCookieTransactionId}}", + "idtToken": "{{idtToken}}", + "request": { + "transactionId": "{{transactionId}}", + "individualId": "{{individualId}}" + } +} \ No newline at end of file diff --git a/api-test/testNgXmlFiles/signupSuite.xml b/api-test/testNgXmlFiles/signupSuite.xml index 2535e0a5..1ca7a302 100644 --- a/api-test/testNgXmlFiles/signupSuite.xml +++ b/api-test/testNgXmlFiles/signupSuite.xml @@ -437,5 +437,13 @@ name="io.mosip.testrig.apirig.signup.testscripts.SimplePostForAutoGenId" /> + + + + + + \ No newline at end of file