-
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 #1082 from nandhu-kumar/develop
MOSIP-29513
- Loading branch information
Showing
25 changed files
with
327 additions
and
129 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
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
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
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
...mationtests/src/main/resources/esignet/VCIVid/AuthenticateUserVCI/AuthenticateUserVCI.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": "alpha-numeric" | ||
} | ||
] | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...mationtests/src/main/resources/esignet/VCIVid/AuthenticateUserVCI/AuthenticateUserVCI.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,33 @@ | ||
AuthenticateUserVCIVid: | ||
ESignet_AuthenticateUserVCI_Vid_Otp_Valid_Smoke: | ||
endPoint: /v1/esignet/authorization/authenticate | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/VCIVid/AuthenticateUserVCI/AuthenticateUserVCI | ||
outputTemplate: esignet/VCIVid/AuthenticateUserVCI/AuthenticateUserVCIResultResult | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:Generate_Perpetual_VID_VCI_Valid_Smoke_sid_vid$", | ||
"authFactorType" : "OTP", | ||
"challenge" : "$ID:AddIdentity_Valid_Params_VCI_Vid_smoke_Pos_EMAIL$", | ||
"sendOtp":{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_transactionId$", | ||
"individualId": "$ID:Generate_Perpetual_VID_VCI_Valid_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$" | ||
} | ||
}' |
1 change: 1 addition & 0 deletions
1
...tests/src/main/resources/esignet/VCIVid/AuthenticateUserVCI/AuthenticateUserVCIResult.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
...tiontests/src/main/resources/esignet/VCIVid/AuthorizationCodeVCI/AuthorizationCodeVCI.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}} | ||
] | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...tiontests/src/main/resources/esignet/VCIVid/AuthorizationCodeVCI/AuthorizationCodeVCI.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,16 @@ | ||
AuthorizationCodeVCIVid: | ||
ESignet_AuthorizationCode_VCI_Vid_All_Valid_Smoke_sid: | ||
endPoint: /v1/esignet/authorization/auth-code | ||
role: resident | ||
restMethod: post | ||
checkErrorsOnlyInResponse: true | ||
validityCheckRequired: true | ||
inputTemplate: esignet/VCIVid/AuthorizationCodeVCI/AuthorizationCodeVCI | ||
outputTemplate: esignet/VCIVid/AuthorizationCodeVCI/AuthorizationCodeVCIResult | ||
input: '{ | ||
"encodedHash": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_encodedResp$", | ||
"requestTime": "$TIMESTAMP$", | ||
"transactionId": "$ID:OAuthDetailsRequest_VCI_Vid_all_Valid_Smoke_sid_transactionId$" | ||
}' | ||
output: '{ | ||
}' |
1 change: 1 addition & 0 deletions
1
...sts/src/main/resources/esignet/VCIVid/AuthorizationCodeVCI/AuthorizationCodeVCIResult.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
automationtests/src/main/resources/esignet/VCIVid/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}}" | ||
} |
Oops, something went wrong.