Skip to content

Commit

Permalink
[ES-1806] Added sub claim and updated pom (#78)
Browse files Browse the repository at this point in the history
Signed-off-by: pvsaidurga <[email protected]>
  • Loading branch information
pvsaidurga authored Jan 16, 2025
1 parent 6fa4527 commit 2d6f369
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions mock-plugin/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -86,8 +86,8 @@
<spring.boot.version>2.3.6.RELEASE</spring.boot.version>

<kernel-keymanager-service.version>1.2.1.0</kernel-keymanager-service.version>
<esignet.version>1.5.0-SNAPSHOT</esignet.version>
<esignet-signup.version>1.1.0-SNAPSHOT</esignet-signup.version>
<esignet.version>1.5.1-SNAPSHOT</esignet.version>
<esignet-signup.version>1.1.1-SNAPSHOT</esignet-signup.version>

<sonar.exclusions>**/dto/**,**/entity/**,**/exception/**,**/spi/**,**/advice/**,**/config/**</sonar.exclusions>
<sonar.cpd.exclusions>**/dto/**,**/entity/**,**/config/**</sonar.cpd.exclusions>
Expand Down Expand Up @@ -421,4 +421,4 @@
</plugins>
</build>

</project>
</project>
4 changes: 2 additions & 2 deletions mosip-identity-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
<spring.boot.version>2.3.6.RELEASE</spring.boot.version>

<kernel-keymanager-service.version>1.2.1.0</kernel-keymanager-service.version>
<esignet.version>1.5.0-SNAPSHOT</esignet.version>
<esignet-signup.version>1.1.0-SNAPSHOT</esignet-signup.version>
<esignet.version>1.5.1-SNAPSHOT</esignet.version>
<esignet-signup.version>1.1.1-SNAPSHOT</esignet-signup.version>

<sonar.exclusions>**/dto/**,**/entity/**,**/exception/**,**/spi/**,**/advice/**,**/config/**</sonar.exclusions>
<sonar.cpd.exclusions>**/dto/**,**/entity/**,**/config/**</sonar.cpd.exclusions>
Expand Down
2 changes: 1 addition & 1 deletion sunbird-rc-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<git-commit-id-plugin.version>3.0.1</git-commit-id-plugin.version>
<maven.jacoco.version>0.8.5</maven.jacoco.version>
<maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version>
<esignet.version>1.5.0-SNAPSHOT</esignet.version>
<esignet.version>1.5.1-SNAPSHOT</esignet.version>
</properties>
<dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class SunbirdRCAuthenticationService implements Authenticator {
@Value("${mosip.esignet.authenticator.sunbird-rc.registry-get-url}")
private String registryUrl;

@Value("#{${mosip.esignt.authenticator.sunbird-rc.identity-openid-claims-mapping}}")
@Value("#{${mosip.esignet.authenticator.sunbird-rc.identity-openid-claims-mapping}}")
private Map<String,String> oidcClaimsMapping;

@Autowired
Expand Down Expand Up @@ -153,6 +153,7 @@ public KycExchangeResult doKycExchange(String relyingPartyId, String clientId, K
}
Map<String, Object> kyc = buildKycDataBasedOnPolicy(responseRegistryMap,
kycExchangeDto.getAcceptedClaims(), kycExchangeDto.getClaimsLocales());
kyc.put("sub", kycExchangeDto.getIndividualId());
String finalKyc = this.encryptKyc ? getJWE(relyingPartyId, signKyc(kyc)) : signKyc(kyc);
KycExchangeResult kycExchangeResult = new KycExchangeResult();
kycExchangeResult.setEncryptedKyc(finalKyc);
Expand Down
4 changes: 2 additions & 2 deletions sunbird-rc-plugin/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ mosip.esignet.authenticator.sunbird-rc.auth-factor.kbi.registry-search-url=https
mosip.esignet.authenticator.sunbird-rc.kbi.entity-id-field=osid

## The mapping where the key represents the OIDC claim, and the value represents the corresponding claim from the Sunbird registry.
mosip.sunbird.identity-openid-claims-mapping={"fullName":"fullName","name":"fullName","email":"email","phone":"mobile","gender":"gender","dateOfBirth":"dob","birthdate":"dob"}
mosip.esignet.authenticator.sunbird-rc.identity-openid-claims-mapping={"fullName":"fullName","name":"fullName","email":"email","phone":"mobile","gender":"gender","dateOfBirth":"dob","birthdate":"dob"}

mosip.esignet.sunbird-rc.registry-get-url=https://registry.dev1.mosip.net/api/v1/Insurance/
mosip.esignet.authenticator.sunbird-rc.registry-get-url=https://registry.dev1.mosip.net/api/v1/Insurance/

0 comments on commit 2d6f369

Please sign in to comment.