diff --git a/automationtests/src/main/resources/esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml b/automationtests/src/main/resources/esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml index 390d0ebb2c6..fb4abefa0fe 100644 --- a/automationtests/src/main/resources/esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/automationtests/src/main/resources/esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -204,67 +204,69 @@ OAuthDetailsRequestVCINegTC: } ] }' -# Removing this test case till we address multiple errors in the error section -# ESignet_OAuthDetailsRequest_VCI_uin_Empty_Code_Challenge_Method_Neg: -# endPoint: /v1/esignet/authorization/v2/oauth-details -# role: resident -# restMethod: post -# checkErrorsOnlyInResponse: true -# inputTemplate: esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI -# outputTemplate: esignet/error -# 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": "" -#}' -# output: '{ -# "errors": [ -# { -# "errorCode": "invalid_pkce_challenge" -# }, -# -# ] -#}' -# ESignet_OAuthDetailsRequest_VCI_uin_SpaceVal_Code_Challenge_Method_Neg: -# endPoint: /v1/esignet/authorization/v2/oauth-details -# role: resident -# restMethod: post -# checkErrorsOnlyInResponse: true -# inputTemplate: esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI -# outputTemplate: esignet/error -# 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": " " -#}' -# output: '{ -# "errors": [ -# { -# "errorCode": "invalid_pkce_challenge" -# } -# ] -#}' + ESignet_OAuthDetailsRequest_VCI_uin_Empty_Code_Challenge_Method_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + allowedErrorCodes: unsupported_pkce_challenge_method,invalid_pkce_challenge + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + 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": "" +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_pkce_challenge" + }, + + ] +}' + + ESignet_OAuthDetailsRequest_VCI_uin_SpaceVal_Code_Challenge_Method_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + allowedErrorCodes: unsupported_pkce_challenge_method,invalid_pkce_challenge + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCINegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + 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": " " +}' + output: '{ + "errors": [ + { + "errorCode": "invalid_pkce_challenge" + } + ] +}' ESignet_OAuthDetailsRequest_VCI_uin_Long_Code_Challenge_Pos: endPoint: /v1/esignet/authorization/v2/oauth-details diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml index 691c5ff4dfd..65f1c01ed5f 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthenticateUserVCI/AuthenticateUserVCI.yml @@ -393,4 +393,103 @@ AuthenticateUserVCIVidNegTC: "sendOtpResTemplate":"esignet/SendOtp/SendOtpResult", "maskedEmail": "$IGNORE$" } +}' + + ESignet_AuthenticateUserVCI_Vid_Otp_NegCredScen1_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_NegCredScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen1_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_NegCredScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen1_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_NegCredScen2_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_NegCredScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen2_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_NegCredScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen2_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_NegCredScen3_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_NegCredScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen3_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_NegCredScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen3_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 1d6c3d70b41..f80cde48c64 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/AuthorizationCodeVCI/AuthorizationCodeVCI.yml @@ -193,4 +193,52 @@ AuthorizationCodeVCIVidNegTC: "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_Hash_CodeChallenge_Valid_Smoke_sid_transactionId$" }' output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_NegCredScen1_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_NegCredScen1_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen1_Valid_Smoke_sid_transactionId$" +}' + output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_NegCredScen2_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_NegCredScen2_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen2_Valid_Smoke_sid_transactionId$" +}' + output: '{ +}' + + ESignet_AuthorizationCode_VCI_Vid_NegCredScen3_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_NegCredScen3_Valid_Smoke_sid_encodedResp$", + "requestTime": "$TIMESTAMP$", + "transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_NegCredScen3_Valid_Smoke_sid_transactionId$" +}' + output: '{ }' \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.hbs new file mode 100644 index 00000000000..74e5e52857d --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.hbs @@ -0,0 +1,23 @@ +{ + "client_id": "{{client_id}}", + "idpAccessToken": "{{idpAccessToken}}", + "format": "{{format}}", + "credential_definition" : { + "type": [ + {{#each type}} + "{{types}}" + {{#unless @last}},{{/unless}} + {{/each}} + ], + "@context": [ + {{#each @context}} + "{{context}}" + {{#unless @last}},{{/unless}} + {{/each}} + ], + }, + "proof": { + "proof_type": "{{proof_type}}", + "jwt": "{{proof_jwt}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredential.yml new file mode 100644 index 00000000000..e69de29bb2d diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialEmptyCredDef.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialEmptyCredDef.hbs new file mode 100644 index 00000000000..5d7d77356e9 --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialEmptyCredDef.hbs @@ -0,0 +1,10 @@ +{ + "client_id": "{{client_id}}", + "idpAccessToken": "{{idpAccessToken}}", + "format": "{{format}}", + "credential_definition" : {}, + "proof": { + "proof_type": "{{proof_type}}", + "jwt": "{{proof_jwt}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoCredDef.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoCredDef.hbs new file mode 100644 index 00000000000..66fef780c5d --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoCredDef.hbs @@ -0,0 +1,10 @@ +{ + "client_id": "{{client_id}}", + "idpAccessToken": "{{idpAccessToken}}", + "format": "{{format}}", + "credential_definition" : "{{credential_definition}}", + "proof": { + "proof_type": "{{proof_type}}", + "jwt": "{{proof_jwt}}" + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoProof.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoProof.hbs new file mode 100644 index 00000000000..761bada3bcf --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialNoProof.hbs @@ -0,0 +1,19 @@ +{ + "client_id": "{{client_id}}", + "idpAccessToken": "{{idpAccessToken}}", + "format": "{{format}}", + "credential_definition" : { + "type": [ + {{#each type}} + "{{types}}" + {{#unless @last}},{{/unless}} + {{/each}} + ], + "@context": [ + {{#each @context}} + "{{context}}" + {{#unless @last}},{{/unless}} + {{/each}} + ], + } +} \ No newline at end of file diff --git a/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialResult.hbs b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialResult.hbs new file mode 100644 index 00000000000..9e26dfeeb6e --- /dev/null +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/GetCredential/GetCredentialResult.hbs @@ -0,0 +1 @@ +{} \ 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 183b582e740..1cdb8e39975 100644 --- a/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml +++ b/automationtests/src/main/resources/esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI.yml @@ -205,66 +205,68 @@ OAuthDetailsRequestVCIVidNegTC: ] }' -# Removing this test case till we address multiple errors in the error section -# ESignet_OAuthDetailsRequest_VCI_Vid_Empty_Code_Challenge_Method_Neg: -# endPoint: /v1/esignet/authorization/v2/oauth-details -# role: resident -# restMethod: post -# checkErrorsOnlyInResponse: true -# inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI -# outputTemplate: esignet/error -# 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": "" -#}' -# output: '{ -# "errors": [ -# { -# "errorCode": "unsupported_pkce_challenge_method" -# } -# ] -#}' -# ESignet_OAuthDetailsRequest_VCI_Vid_SpaceVal_Code_Challenge_Method_Neg: -# endPoint: /v1/esignet/authorization/v2/oauth-details -# role: resident -# restMethod: post -# checkErrorsOnlyInResponse: true -# inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI -# outputTemplate: esignet/error -# 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": " " -#}' -# output: '{ -# "errors": [ -# { -# "errorCode": "unsupported_pkce_challenge_method" -# } -# ] -#}' + ESignet_OAuthDetailsRequest_VCI_Vid_Empty_Code_Challenge_Method_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + allowedErrorCodes: unsupported_pkce_challenge_method,invalid_pkce_challenge + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + 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": "" +}' + output: '{ + "errors": [ + { + "errorCode": "unsupported_pkce_challenge_method" + } + ] +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_SpaceVal_Code_Challenge_Method_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + allowedErrorCodes: unsupported_pkce_challenge_method,invalid_pkce_challenge + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + 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": " " +}' + output: '{ + "errors": [ + { + "errorCode": "unsupported_pkce_challenge_method" + } + ] +}' ESignet_OAuthDetailsRequest_VCI_Vid_Long_Code_Challenge_Pos: endPoint: /v1/esignet/authorization/v2/oauth-details @@ -666,4 +668,142 @@ OAuthDetailsRequestVCIVidNegTC: }' output: '{ +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_Invalid_Val_Scope_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "hafkja", + "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: '{ + "errors": [ + { + "errorCode": "invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_Missing_Scope_Neg: + endPoint: /v1/esignet/authorization/v2/oauth-details + role: resident + restMethod: post + checkErrorsOnlyInResponse: true + inputTemplate: esignet/VCIVidNegTC/OAuthDetailsRequestVCI/OAuthDetailsRequestVCI + outputTemplate: esignet/error + input: '{ + "requestTime": "$TIMESTAMP$", + "clientId": "$ID:CreateOIDCClient_all_Valid_Smoke_sid_clientId$", + "scope": "$REMOVE$", + "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: '{ + "errors": [ + { + "errorCode": "invalid_scope" + } + ] +}' + + ESignet_OAuthDetailsRequest_VCI_Vid_NegCredScen1_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_NegCredScen2_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_NegCredScen3_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: '{ + }' \ No newline at end of file