-
Notifications
You must be signed in to change notification settings - Fork 105
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 #1106 from nandhu-kumar/develop
MOSIP-29513
- Loading branch information
Showing
8 changed files
with
435 additions
and
2 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
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
9 changes: 9 additions & 0 deletions
9
automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.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}}" | ||
} |
80 changes: 80 additions & 0 deletions
80
automationtests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCI.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,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" | ||
}' |
3 changes: 3 additions & 0 deletions
3
...ntests/src/main/resources/esignet/VCIVidNegTC/GenerateTokenVCI/GenerateTokenVCIResult.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}}" | ||
} |
Oops, something went wrong.