diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml index 6dbb5b8225e..691c5ff4dfd 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml @@ -131,6 +131,39 @@ AuthenticateUserVCIVidNegTC: } }' + ESignet_AuthenticateUserVCI_Vid_Otp_Diff_Scope_Valid_Smoke: + endPoint: /v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI + outputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCIResultResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_Diff_Scope_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Diff_Scope_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_Inv_Scen_smoke_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_Diff_Scope_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Diff_Scope_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } +}' + ESignet_AuthenticateUserVCI_Vid_Otp_NegAuthCodeScen5_Valid_Smoke: endPoint: /v1/esignet/authorization/authenticate role: resident @@ -228,4 +261,136 @@ AuthenticateUserVCIVidNegTC: "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", "maskedEmail": "$IGNORE$" } +}' + + ESignet_AuthenticateUserVCI_Vid_Otp_NegTokenScen1_Valid_Smoke: + endPoint: /v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI + outputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCIResultResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_Inv_Scen_smoke_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } +}' + + ESignet_AuthenticateUserVCI_Vid_Otp_NegTokenScen2_Valid_Smoke: + endPoint: /v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI + outputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCIResultResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_Inv_Scen_smoke_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } +}' + + ESignet_AuthenticateUserVCI_Vid_Otp_NegTokenScen3_Valid_Smoke: + endPoint: /v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI + outputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCIResultResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_Inv_Scen_smoke_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } +}' + + ESignet_AuthenticateUserVCI_Vid_Otp_Hash_CodeChallenge_Valid_Smoke: + endPoint: /v1/esignet/authorization/authenticate + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI + outputTemplate: esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCIResultResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "authFactorType" : "OTP", + "challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_Inv_Scen_smoke_Pos_EMAIL$", + "sendOtp":{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_transactionId$", + "individualId": "$ID:Generate_Perpetual_VID_VCI_Invalid_Scen_Smoke_sid_vid$", + "otpChannels": [{channel: "email"},{channel: "phone"}], + "sendOtpReqTemplate": "esignet/SendOtp/SendOtp", + "sendOtpEndPoint": "/v1/esignet/authorization/send-otp" + } + }' + output: '{ + "sendOtpResp":{ + "maskedMobile": "XXXXXX3210", + "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", + "maskedEmail": "$IGNORE$" + } }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml index dd9f17a3bca..611abc05b41 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml @@ -173,4 +173,68 @@ AuthorizationCodeVCIVidNegTC: "errorCode": "invalid_accepted_claim" } ] +}' + + ESignet_AuthorizationCode_VCI_Vid_NegTokenScen1_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI + outputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCIResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_transactionId$" +}' + output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_NegTokenScen2_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI + outputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCIResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_transactionId$" +}' + output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_NegTokenScen3_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI + outputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCIResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_transactionId$" +}' + output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/auth-code + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI + outputTemplate: esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCIResult + input: '{ + "encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_transactionId$" +}' + output: '{ }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.hbs new file mode 100644 index 00000000000..c425e67650b --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.hbs @@ -0,0 +1,9 @@ +{ + "grant_type": "{{grant_type}}", + "code": "{{code}}", + "client_id": "{{client_id}}", + "client_assertion_type": "{{client_assertion_type}}", + "client_assertion": "{{client_assertion}}", + "redirect_uri": "{{redirect_uri}}", + "code_verifier": "{{code_verifier}}" +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.yml new file mode 100644 index 00000000000..2234518c67a --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.yml @@ -0,0 +1,80 @@ +GenerateTokenVCIVidNegTC: + ESignet_GenerateTokenVCI_Vid_NegTokenScen1_Invalid_code_verifier: + endPoint: /v1/esignet/oauth/v2/token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI + outputTemplate: esignet/error2 + input: '{ + "grant_type": "authorization_code", + "code": "$ID:AuthorizationCode_VCI_Vid_NegTokenScen1_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": "$CLIENT_ASSERTION_JWK$", + "redirect_uri": "$IDPREDIRECTURI$", + "code_verifier": "sdgfhss" +}' + output: '{ + "error": "pkce_failed" +}' + + ESignet_GenerateTokenVCI_Vid_NegTokenScen2_Empty_code_verifier: + endPoint: /v1/esignet/oauth/v2/token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI + outputTemplate: esignet/error2 + input: '{ + "grant_type": "authorization_code", + "code": "$ID:AuthorizationCode_VCI_Vid_NegTokenScen2_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": "$CLIENT_ASSERTION_JWK$", + "redirect_uri": "$IDPREDIRECTURI$", + "code_verifier": "" +}' + output: '{ + "error": "invalid_pkce_code_verifier" +}' + + ESignet_GenerateTokenVCI_Vid_NegTokenScen3_NoHash_code_verifier: + endPoint: /v1/esignet/oauth/v2/token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI + outputTemplate: esignet/error2 + input: '{ + "grant_type": "authorization_code", + "code": "$ID:AuthorizationCode_VCI_Vid_NegTokenScen3_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": "$CLIENT_ASSERTION_JWK$", + "redirect_uri": "$IDPREDIRECTURI$", + "code_verifier": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM" +}' + output: '{ + "error": "pkce_failed" +}' + + ESignet_GenerateTokenVCI_Vid_Invalid_Hash_CodeChallenge: + endPoint: /v1/esignet/oauth/v2/token + role: resident + restMethod: post + validityCheckRequired: true + inputTemplate: esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI + outputTemplate: esignet/error2 + input: '{ + "grant_type": "authorization_code", + "code": "$ID:AuthorizationCode_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_code$", + "client_id": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", + "client_assertion": "$CLIENT_ASSERTION_JWK$", + "redirect_uri": "$IDPREDIRECTURI$", + "code_verifier": "$CODEVERIFIER$" +}' + output: '{ + "error": "pkce_failed" +}' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCIResult.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCIResult.hbs new file mode 100644 index 00000000000..c323e20a77e --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCIResult.hbs @@ -0,0 +1,3 @@ +{ + "token_type": "{{token_type}}" +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml index be05d56276c..5512e973b4e 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -549,4 +549,108 @@ OAuthDetailsRequestVCIVidNegTC: }' output: '{ +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_NegTokenScen1_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "mosip_identity_vc_ldp", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code mosip:idp:acr:linked-wallet mosip:idp:acr:biometrics", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en", + "codeChallenge": "$CODECHALLENGE$", + "codeChallengeMethod": "S256" +}' + output: '{ + +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_NegTokenScen2_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "mosip_identity_vc_ldp", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code mosip:idp:acr:linked-wallet mosip:idp:acr:biometrics", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en", + "codeChallenge": "$CODECHALLENGE$", + "codeChallengeMethod": "S256" +}' + output: '{ + +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_NegTokenScen3_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "mosip_identity_vc_ldp", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code mosip:idp:acr:linked-wallet mosip:idp:acr:biometrics", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en", + "codeChallenge": "$CODECHALLENGE$", + "codeChallengeMethod": "S256" +}' + output: '{ + +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCIResult + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "mosip_identity_vc_ldp", + "responseType": "code", + "redirectUri": "$IDPREDIRECTURI$", + "display": "popup", + "prompt": "login", + "acrValues": "mosip:idp:acr:generated-code mosip:idp:acr:linked-wallet mosip:idp:acr:biometrics", + "nonce": "973eieljzng", + "state": "eree2311", + "claimsLocales": "en", + "codeChallenge": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk", + "codeChallengeMethod": "S256" +}' + output: '{ + }' \ No newline at end of file diff --git a/automationtests/src/main/resources/resident/GetChannelVerificationStatus/GetChannelVerificationStatus.yml b/automationtests/src/main/resources/resident/GetChannelVerificationStatus/GetChannelVerificationStatus.yml index 809ba28269c..4b16ae72fec 100644 --- a/automationtests/src/main/resources/resident/GetChannelVerificationStatus/GetChannelVerificationStatus.yml +++ b/automationtests/src/main/resources/resident/GetChannelVerificationStatus/GetChannelVerificationStatus.yml @@ -154,7 +154,7 @@ GetChannelVerificationStatus: output: '{ "errors": [ { - "errorCode": "RES-SER-522", + "errorCode": "RES-SER-410", "message": "$IGNORE$" } ], @@ -244,7 +244,7 @@ GetChannelVerificationStatus: output: '{ "errors": [ { - "errorCode": "RES-SER-522", + "errorCode": "RES-SER-410", "message": "$IGNORE$" } ], diff --git a/automationtests/testNgXmlFiles/esignetSuite.xml b/automationtests/testNgXmlFiles/esignetSuite.xml index 58f71048b71..b3156fc3994 100644 --- a/automationtests/testNgXmlFiles/esignetSuite.xml +++ b/automationtests/testNgXmlFiles/esignetSuite.xml @@ -577,6 +577,14 @@ + + + + + + +