-
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 remote-tracking branch 'upstream/develop' into develop
- Loading branch information
Showing
15 changed files
with
687 additions
and
0 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
35 changes: 35 additions & 0 deletions
35
automationtests/src/main/resources/esignet/CreateOIDCClientV2/CreateOIDCClient.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,35 @@ | ||
{ | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"clientId": "{{clientId}}", | ||
"clientName": "{{clientName}}", | ||
"publicKey": {{publicKey}}, | ||
"relyingPartyId": "{{relyingPartyId}}", | ||
"userClaims": [ | ||
"{{userClaims1}}", | ||
"{{userClaims2}}", | ||
"{{userClaims3}}", | ||
"{{userClaims4}}", | ||
"{{userClaims5}}" | ||
], | ||
"authContextRefs": [ | ||
{{#each authContextRefs}} | ||
"{{acrValues}}" | ||
{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
], | ||
"logoUri": "{{logoUri}}", | ||
"redirectUris": [ | ||
"{{redirectUris}}" | ||
], | ||
"grantTypes": [ | ||
"{{grantTypes}}" | ||
], | ||
"clientAuthMethods": [ | ||
"{{clientAuthMethods}}" | ||
], | ||
"clientNameLangMap": { | ||
"{{keyLang1}}": "{{clientNameLang}}" | ||
} | ||
} | ||
} |
191 changes: 191 additions & 0 deletions
191
automationtests/src/main/resources/esignet/CreateOIDCClientV2/CreateOIDCClient.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,191 @@ | ||
CreateOIDCClientV2: | ||
ESignet_CreateOIDCClientV2_all_Valid_Smoke_sid: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClient | ||
outputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClientResult | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt", | ||
"keyLang1": "$1STLANG$", | ||
"clientNameLang": "MOSIP OIDC Client" | ||
}' | ||
output: '{ | ||
"clientId": "$IGNORE$", | ||
"status": "ACTIVE" | ||
}' | ||
|
||
ESignet_CreateOIDCClientV2_Invalid_langCode_Size_Neg: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClient | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt", | ||
"keyLang1": "mhsdfsfd", | ||
"clientNameLang": "MOSIP OIDC Client" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_language_code" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_CreateOIDCClientV2_Invalid_langCode_Neg: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClient | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt", | ||
"keyLang1": "abc", | ||
"clientNameLang": "MOSIP OIDC Client" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_language_code" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_CreateOIDCClientV2_Invalid_clientNameLang_Neg: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClient | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt", | ||
"keyLang1": "$1STLANG$", | ||
"clientNameLang": "" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_client_name_value" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_CreateOIDCClientV2_Missing_ClientNamelangMap_Value_Neg: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClientWOClientLangMapValue | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_client_name_value" | ||
} | ||
] | ||
}' | ||
|
||
ESignet_CreateOIDCClientV2_Missing_ClientNamelangMap_Neg: | ||
endPoint: /v1/esignet/client-mgmt/v2/oidc-client | ||
role: partner | ||
restMethod: post | ||
inputTemplate: esignet/CreateOIDCClientV2/CreateOIDCClientWOClientLangMap | ||
outputTemplate: esignet/error | ||
input: '{ | ||
"requestTime": "$TIMESTAMP$", | ||
"clientId": "$RANDOMID$V2", | ||
"clientName": "MOSIP OIDC Client", | ||
"logoUri": "https://health-services.com/logo.png", | ||
"relyingPartyId": "Bharathi-Inc", | ||
"redirectUris": "$IDPREDIRECTURI$", | ||
"publicKey": "$JWKKEY$", | ||
"userClaims1": "name", | ||
"userClaims2": "email", | ||
"userClaims3": "gender", | ||
"userClaims4": "phone_number", | ||
"userClaims5": "birthdate", | ||
"authContextRefs": [{acrValues: "mosip:idp:acr:static-code"},{acrValues: "mosip:idp:acr:generated-code"},{acrValues: "mosip:idp:acr:biometrics"}], | ||
"grantTypes": "authorization_code", | ||
"clientAuthMethods": "private_key_jwt" | ||
}' | ||
output: '{ | ||
"errors": [ | ||
{ | ||
"errorCode": "invalid_client_name_value" | ||
} | ||
] | ||
}' |
6 changes: 6 additions & 0 deletions
6
automationtests/src/main/resources/esignet/CreateOIDCClientV2/CreateOIDCClientResult.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,6 @@ | ||
{ | ||
"response": { | ||
"clientId": "{{clientId}}", | ||
"status": "{{status}}" | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...ontests/src/main/resources/esignet/CreateOIDCClientV2/CreateOIDCClientWOClientLangMap.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,32 @@ | ||
{ | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"clientId": "{{clientId}}", | ||
"clientName": "{{clientName}}", | ||
"publicKey": {{publicKey}}, | ||
"relyingPartyId": "{{relyingPartyId}}", | ||
"userClaims": [ | ||
"{{userClaims1}}", | ||
"{{userClaims2}}", | ||
"{{userClaims3}}", | ||
"{{userClaims4}}", | ||
"{{userClaims5}}" | ||
], | ||
"authContextRefs": [ | ||
{{#each authContextRefs}} | ||
"{{acrValues}}" | ||
{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
], | ||
"logoUri": "{{logoUri}}", | ||
"redirectUris": [ | ||
"{{redirectUris}}" | ||
], | ||
"grantTypes": [ | ||
"{{grantTypes}}" | ||
], | ||
"clientAuthMethods": [ | ||
"{{clientAuthMethods}}" | ||
] | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ts/src/main/resources/esignet/CreateOIDCClientV2/CreateOIDCClientWOClientLangMapValue.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,33 @@ | ||
{ | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"clientId": "{{clientId}}", | ||
"clientName": "{{clientName}}", | ||
"publicKey": {{publicKey}}, | ||
"relyingPartyId": "{{relyingPartyId}}", | ||
"userClaims": [ | ||
"{{userClaims1}}", | ||
"{{userClaims2}}", | ||
"{{userClaims3}}", | ||
"{{userClaims4}}", | ||
"{{userClaims5}}" | ||
], | ||
"authContextRefs": [ | ||
{{#each authContextRefs}} | ||
"{{acrValues}}" | ||
{{#unless @last}},{{/unless}} | ||
{{/each}} | ||
], | ||
"logoUri": "{{logoUri}}", | ||
"redirectUris": [ | ||
"{{redirectUris}}" | ||
], | ||
"grantTypes": [ | ||
"{{grantTypes}}" | ||
], | ||
"clientAuthMethods": [ | ||
"{{clientAuthMethods}}" | ||
], | ||
"clientNameLangMap": {} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
automationtests/src/main/resources/esignet/OAuthDetailsRequestV2/OAuthDetailsRequest.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,17 @@ | ||
{ | ||
"requestTime": "{{requestTime}}", | ||
"request": { | ||
"clientId": "{{clientId}}", | ||
"scope": "{{scope}}", | ||
"responseType": "{{responseType}}", | ||
"redirectUri": "{{redirectUri}}", | ||
"display": "{{display}}", | ||
"prompt": "{{prompt}}", | ||
"acrValues": "{{acrValues}}", | ||
"nonce" : "{{nonce}}", | ||
"state" : "{{state}}", | ||
"claimsLocales" : "{{claimsLocales}}", | ||
"codeChallenge" : "{{codeChallenge}}", | ||
"codeChallengeMethod" : "{{codeChallengeMethod}}" | ||
} | ||
} |
Oops, something went wrong.