forked from mosip/inji-certify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mosip#96 from likhitharl/develop
INJICERT-213- Negative testcases
- Loading branch information
Showing
26 changed files
with
1,047 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...main/resources/injicertify/SunBirdC/AuthenticateUserSunBirdC/AuthenticateUserSunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...in/resources/injicertify/SunBirdC/AuthorizationCodeSunBirdC/AuthorizationCodeSunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
.../resources/injicertify/SunBirdC/CreateOIDCClientV2SunBirdC/CreateOIDCClientV2SunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...t/src/main/resources/injicertify/SunBirdC/GenerateTokenSunBirdC/GenerateTokenSunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...t/src/main/resources/injicertify/SunBirdC/GetCredentialSunBirdC/GetCredentialSunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...esources/injicertify/SunBirdC/OAuthDetailsRequestSunBirdC/OAuthDetailsRequestSunBirdC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...injicertify/SunBirdCForVd11/GetCredentialSunBirdCForVd11/GetCredentialSunBirdCForVd11.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...injicertify/SunBirdCForVd12/GetCredentialSunBirdCForVd12/GetCredentialSunBirdCForVd12.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
.../injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"encodedHash": "{{encodedHash}}", | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"transactionId": "{{transactionId}}", | ||
"individualId": "{{individualId}}", | ||
"challengeList" : [ | ||
{ | ||
"authFactorType" : "{{authFactorType}}", | ||
"challenge" : "{{challenge}}", | ||
"format": "{{format}}" | ||
} | ||
] | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
.../injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
AuthenticateUserSunBirdCNeg: | ||
InjiCertify_ESignet_AuthenticateUserSunBirdC_Valid_Smoke_Neg: | ||
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/authenticate | ||
uniqueIdentifier: TC_esignetDependent_AuthenticateUserNeg | ||
description: Authenticate User | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCNeg | ||
outputTemplate: injicertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg | ||
input: '{ | ||
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$POLICYNUMBERFORSUNBIRDRC$", | ||
"authFactorType" : "KBA", | ||
"challenge" : "$CHALLENGEVALUEFORSUNBIRDC$", | ||
"format": "base64url-encoded-json" | ||
}' | ||
output: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
...ertify/SunBirdCNegative/AuthenticateUserSunBirdCNeg/AuthenticateUserSunBirdCResultNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
19 changes: 19 additions & 0 deletions
19
...njicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"encodedHash": "{{encodedHash}}", | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"transactionId": "{{transactionId}}", | ||
"acceptedClaims": [ | ||
{{#each acceptedClaims}} | ||
"{{claim}}" | ||
{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
], | ||
"permittedAuthorizeScopes": [ | ||
{{#each permittedAuthorizeScopes}} | ||
"{{scope}}" | ||
{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
] | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...njicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
AuthorizationCodeSunBirdCNeg: | ||
InjiCertify_ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_Neg: | ||
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/authorization/auth-code | ||
uniqueIdentifier: TC_esignetDependent_AuthorizationCodeNeg | ||
description: Authorization Code | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCNeg | ||
outputTemplate: injicertify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg | ||
input: '{ | ||
"encodedHash": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:ESignet_OAuthDetailsRequest_SunBirdC_all_Valid_Smoke_sid_transactionId$", | ||
"permittedAuthorizeScopes": [{scope: "sunbird_rc_insurance_vc_ldp"}] | ||
}' | ||
output: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
...tify/SunBirdCNegative/AuthorizationCodeSunBirdCNeg/AuthorizationCodeSunBirdCResultNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
9 changes: 9 additions & 0 deletions
9
...ources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}" | ||
} |
22 changes: 22 additions & 0 deletions
22
...ources/injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
GenerateTokenSunBirdCNeg: | ||
InjiCertify_ESignet_GenerateTokenSunBirdC_Valid_Smoke_sid_Neg: | ||
endPoint: $ESIGNETMOCKBASEURL$/v1/esignet/oauth/v2/token | ||
uniqueIdentifier: TC_esignetDependent_GenerateTokenNeg | ||
description: Generate Token | ||
role: resident | ||
restMethod: post | ||
validityCheckRequired: true | ||
inputTemplate: injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCNeg | ||
outputTemplate: injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg | ||
input: '{ | ||
"grant_type": "authorization_code", | ||
"code": "$ID:ESignet_AuthorizationCode_SunBirdC_All_Valid_Smoke_sid_code$", | ||
"client_id": "$ID:ESignet_CreateOIDCClientV2SunBirdC_all_Valid_Smoke_sid_clientId$", | ||
"client_assertion_type": "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", | ||
"client_assertion": "$CLIENT_ASSERTION_USER4_JWK$", | ||
"redirect_uri": "$IDPREDIRECTURI$", | ||
"code_verifier": "$CODEVERIFIER$" | ||
}' | ||
output: '{ | ||
"token_type": "Bearer" | ||
}' |
3 changes: 3 additions & 0 deletions
3
.../injicertify/SunBirdCNegative/GenerateTokenSunBirdCNeg/GenerateTokenSunBirdCResultNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"token_type": "{{token_type}}" | ||
} |
23 changes: 23 additions & 0 deletions
23
...ources/injicertify/SunBirdCNegative/GetCredentialSunBirdCNeg/GetCredentialSunBirdCNeg.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}" | ||
} | ||
} |
Oops, something went wrong.