Skip to content

Commit

Permalink
Merge pull request #157 from tw-mosip/INJI-624-merge-to-develop
Browse files Browse the repository at this point in the history
Merge Release 0.10.0 to develop
  • Loading branch information
vijay151096 authored Dec 19, 2023
2 parents d870091 + b47a893 commit f70c038
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/chart-lint-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ on:
- MOSIP*
- release*
paths:
- 'charts/**'
- './helm/**'

jobs:
chart-lint-publish:
Expand All @@ -59,4 +59,4 @@ jobs:
LINTING_HEALTH_CHECK_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/health-check-schema.yaml"
secrets:
TOKEN: ${{ secrets.ACTION_PAT }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
30 changes: 17 additions & 13 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ fileignoreconfig:
checksum: f07ea78ad10b25b8c7ebb78be365cf87b03d7ee2681265de9617f1aa54a912e9
- filename: src/main/java/io/mosip/mimoto/exception/BiometricException.java
checksum: e99050f4618224a32d378df776a177a1e0cf87089dfcc2ea542cb05c74c7d88b
- filename: src/test/java/io/mosip/mimoto/controller/InjiControllerTest.java
checksum: 2ed11df9c90f52e7a6b9e9c31c462393e492f57493c6ec8f1492078fd16ce9ba
- filename: src/test/java/io/mosip/mimoto/util/JoseUtilTest.java
checksum: 5c407e9011599fb6ff95820fff6a3a4b781c7b95875937c629893d1a8cb08fa0
- filename: src/test/java/io/mosip/mimoto/service/CredentialShareServiceTest.java
Expand All @@ -23,24 +21,16 @@ fileignoreconfig:
checksum: 8245c8124920165b6d9f0696a17d7ae1e945bef0b0d79e8a325bfe3c8afac3f4
- filename: docs/images/id_pass_logo.svg
checksum: 81b14da4f42f335cf6a3094489844962b92fc629c89691487558c71c3d44a915
- filename: .github/workflows/push-trigger.yml
checksum: 98fb3ab2510d2361cdca7cbd4a57afd88e9afa1ff5c4ee6d4b7930a8f565b1ab
- filename: helm/mimoto/install.sh
checksum: d5f2e121664dc1b3d8769a36b481ddb44a4f41f410df8c55a5467f4fd53a8a99
- filename: src/main/java/io/mosip/mimoto/controller/CredentialShareController.java
checksum: 666c22ca63adb8770de901e220f8efeb5ec1d3f63064a58dea33ba49b8e15872
- filename: src/main/java/io/mosip/mimoto/controller/IssuersController.java
checksum: 856d860de2562fa019ac23bd724b84e1d67b834883b332c12415e6714de9bb05
- filename: helm/mimoto/templates/deployment.yaml
checksum: 6eee9c084a39881370a82d249c5f0ae42c99f752db93b59507f4e83b68e7ac26
- filename: helm/mimoto/values.yaml
checksum: 3a851cd6ca92a0ec97faac8e771b834b92b226dc607681d2a936b067e3874e16
- filename: src/main/java/io/mosip/mimoto/constant/DocumentGeneratorExceptionCodeConstant.java
checksum: 329b8341fed7a8166fd1ba66af3d74810e4549b00b1d13e1216d097374c1ce52
- filename: src/main/java/io/mosip/mimoto/dto/mimoto/AttestationStatement.java
checksum: 50a8c075791999d3ffc6f5df0a06b790a69d922688c4c7498d8a6d415c8f046d
- filename: partner-onboarder/install.sh
checksum: 0551b30d8c6634466602d6e7234a6aa580a46bdd72ed02a737c7c095d5e32edf
- filename: src/main/java/io/mosip/mimoto/exception/ExceptionUtils.java
checksum: 078d1e13d2c6787718f2bfd8320380e3aa4921c498cd05c9e445d78f08384c20
- filename: src/main/java/io/mosip/mimoto/util/WebSubSubscriptionHelper.java
Expand All @@ -59,11 +49,25 @@ fileignoreconfig:
checksum: 4b17319b2ec9e41c943798700d7bf382281f1dd752246e635991f398a9bc9234
- filename: src/main/java/io/mosip/mimoto/util/RestApiClient.java
checksum: 77b8afdefbb1f8ff56e140836e6713d150ac48f99c6778e43bc2854e5fcd4732
- filename: src/main/java/io/mosip/mimoto/util/JoseUtil.java
checksum: 1a9b48b950b17c14c32c2ee0c8ad0448d63da887dfb7eb82f4f0bf0b71fdeafa
- filename: src/main/java/io/mosip/mimoto/util/CryptoUtil.java
checksum: fc4b7bd41ca63b2060854e218eb50689f77162dc51c45e95f51ec0272bd3585a
- filename: src/main/java/io/mosip/mimoto/util/CryptoCoreUtil.java
checksum: 0ecab2033342fbbc7828c3eae63247c8c33f4faea3001582338819669cd9b904
- filename: docs/postman-collections/Collab.postman_environment.json
checksum: 93662b305117d9ac73e9f8ace2bd8dc8b2de494908a8c69166d0c908cc80365c
- filename: docs/postman-collections/MIMOTO.postman_collection.json
checksum: fd0eef9938e68389ec3f351cb3ec989e78007e89f38227bdd344afa92b74d462
- filename: src/test/java/io/mosip/mimoto/controller/InjiControllerTest.java
checksum: c4e28436cb04004d9cb4e1492a1d013eac076936a3fa3a99d35bfb137f27c37b
- filename: .github/workflows/push-trigger.yml
checksum: db107eeba72ab765725de47b071bcdc65a2addf6c178004032a8859aeaa4ebe0
- filename: partner-onboarder/install.sh
checksum: 68931ea29cd2ab8bda88514a78e422946073bd4640ef4d3afdc7d7580b2d1cb5
- filename: helm/mimoto/install.sh
checksum: b979d5180f2862a847455988b46408609edede52ddca7b3c0e229692d8aaa945
- filename: helm/mimoto/values.yaml
checksum: 894215a6578dd6f27e22df1554ee87bfc7ef0f579d03c805f30d976546dfee35
- filename: src/main/java/io/mosip/mimoto/util/JoseUtil.java
checksum: 65c4d7f9d4f28e7e4e5376e4f6cdce8b49b485c3ea2ab214f72d018d5d73b6aa
- filename: README.md
checksum: b01438ae6897d9a2d311ca6f68cc839cb4d8252b29d9fa7d41a0362aaecf0065
checksum: f3e7693f4f554640b93c82e438d28d015f8c09be622c22ac6847e528830968f6
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ mvn clean package
mvn spring-boot:run -Dspring.profiles.active=local
```

## Deploy
## Deployment

### Install

1. Execute Onboarder install script

```
cd partner-onboarder
./install.sh
```
* During the execution of the `install.sh` script, a prompt appears requesting information for the S3 bucket, including its name and URL.
* Once the job is completed, log in to S3 and check the reports. There should not be any failures.

2. Execute mimoto install script

```
cd helm/mimoto
./install.sh
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/mosip/mimoto/dto/DisplayDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ public class DisplayDTO {
@Expose
LogoDTO logo;
@Expose
String title;
@Expose
String description;
@Expose
String language;
}
6 changes: 3 additions & 3 deletions src/main/java/io/mosip/mimoto/util/JoseUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ public String getJWT(String clientId) {
String keyStorePathWithFileName = keyStorePath + fileName;
Date issuedAt = Date.from(Instant.now());
Date expiresAt = Date.from(Instant.now().plusMillis(120000));
KeyStore.PrivateKeyEntry privateKeyEntry= null;
RSAPrivateKey privateKey = null;
try {
privateKeyEntry = cryptoCoreUtil.loadP12(keyStorePathWithFileName, alias, cyptoPassword);
KeyStore.PrivateKeyEntry privateKeyEntry = cryptoCoreUtil.loadP12(keyStorePathWithFileName, alias, cyptoPassword);
privateKey = (RSAPrivateKey) privateKeyEntry.getPrivateKey();
} catch (IOException e) {
logger.error("Exception happened while loading the p12 file for invoking token call.");
}
RSAPrivateKey privateKey = (RSAPrivateKey) privateKeyEntry.getPrivateKey();
return JWT.create()
.withHeader(header)
.withIssuer(clientId)
Expand Down
93 changes: 90 additions & 3 deletions src/main/resources/mimoto-issuers-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,49 @@
"url": "https://api.dev1.mosip.net/inji/digit-icon.png",
"alt_text": "digits-logo"
},
"title": "Download via UIN, VID, AID",
"description": "Enter your national ID to download your card.",
"language": "en"
},
{
"name": "UIN, VID, AID",
"logo": {
"url": "https://api.dev1.mosip.net/inji/digit-icon.png",
"alt_text": "أرقام الشعار"
},
"title": "التنزيل عبر UIN, VID, AID",
"description": "أدخل رقم الهوية الوطنية الخاص بك لتنزيل بطاقتك.",
"language": "ar"
},
{
"name": "UIN, VID, AID",
"logo": {
"url": "https://api.dev1.mosip.net/inji/digit-icon.png",
"alt_text": "अंक-लोगो"
},
"title": "UIN, VID, AID के माध्यम से डाउनलोड करे",
"description": "अपना कार्ड डाउनलोड करने के लिए अपनी राष्ट्रीय आईडी दर्ज करें।",
"language": "hi"
},
{
"name": "UIN, VID, AID",
"logo": {
"url": "https://api.dev1.mosip.net/inji/digit-icon.png",
"alt_text": "ಅಂಕೆಗಳು-ಲೋಗೋ"
},
"title": "UIN, VID, AID ಮೂಲಕ ಡೌನ್‌ಲೋಡ್ ಮಾಡಿ",
"description": "ನಿಮ್ಮ ಕಾರ್ಡ್ ಅನ್ನು ಡೌನ್‌ಲೋಡ್ ಮಾಡಲು ನಿಮ್ಮ ರಾಷ್ಟ್ರೀಯ ID ಅನ್ನು ನಮೂದಿಸಿ.",
"language": "kn"
},
{
"name": "UIN, VID, AID",
"logo": {
"url": "https://api.dev1.mosip.net/inji/digit-icon.png",
"alt_text": "இலக்கங்கள்-லோகோ"
},
"title": "UIN, VID, AID மூலம் பதிவிறக்கவும்",
"description": "உங்கள் கார்டைப் பதிவிறக்க உங்கள் தேசிய ஐடியை உள்ளிடவும்.",
"language": "ta"
}
],
"protocol": "OTP"
Expand All @@ -23,20 +65,65 @@
"url": "https://esignet.dev1.mosip.net/logo.png",
"alt_text": "esignet-logo"
},
"title": "Download via e-Signet",
"description": "Enter your national ID to download your card.",
"language": "en"
},
{
"name": "e-Signet",
"logo": {
"url": "https://esignet.dev1.mosip.net/logo.png",
"alt_text": "esignet-logo"
},
"title": "e-Signet التنزيل عبر",
"description": "أدخل رقم الهوية الوطنية الخاص بك لتنزيل بطاقتك.",
"language": "ar"
},
{
"name": "e-Signet",
"logo": {
"url": "https://esignet.dev1.mosip.net/logo.png",
"alt_text": "esignet-लोगो"
},
"title": "ई-हस्ताक्षर के माध्यम से डाउनलोड करें",
"description": "अपना कार्ड डाउनलोड करने के लिए अपनी राष्ट्रीय आईडी दर्ज करें।",
"language": "hi"
},
{
"name": "e-Signet",
"logo": {
"url": "https://esignet.dev1.mosip.net/logo.png",
"alt_text": "esignet-ಲೋಗೋ"
},
"title": "ಇ-ಸಿಗ್ನೆಟ್ ಮೂಲಕ ಡೌನ್ಲೋಡ್ ಮಾಡಿ",
"description": "ನಿಮ್ಮ ಕಾರ್ಡ್ ಅನ್ನು ಡೌನ್‌ಲೋಡ್ ಮಾಡಲು ನಿಮ್ಮ ರಾಷ್ಟ್ರೀಯ ID ಅನ್ನು ನಮೂದಿಸಿ.",
"language": "kn"
},
{
"name": "e-Signet",
"logo": {
"url": "https://esignet.dev1.mosip.net/logo.png",
"alt_text": "esignet-லோகோ"
},
"title": "இ-சிக்னெட் மூலம் பதிவிறக்கம் செய்யவும்",
"description": "உங்கள் கார்டைப் பதிவிறக்க உங்கள் தேசிய ஐடியை உள்ளிடவும்.",
"language": "ta"
}
],
"protocol": "OpenId4VCI",
"client_id": "7-*****************IWRDAg1x-M",
"scopes_supported": ["mosip_identity_vc_ldp"],
"additional_headers": { "Accept": "application/json" },
"scopes_supported": [
"mosip_identity_vc_ldp"
],
"additional_headers": {
"Accept": "application/json"
},
".well-known": null,
"redirect_uri": "io.mosip.residentapp.inji://oauthredirect",
"authorization_endpoint": "https://esignet.dev1.mosip.net/authorize",
"token_endpoint": "https://api.dev1.mosip.net/residentmobileapp/get-token",
"credential_endpoint": "https://api-internal.dev1.mosip.net/v1/esignet/vci/credential",
"credential_audience": "https://esignet.dev1.mosip.net/v1/esignet"
}

]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import io.mosip.mimoto.exception.ApiNotAccessibleException;
import io.mosip.mimoto.exception.ApisResourceAccessException;
import io.mosip.mimoto.exception.BaseUncheckedException;
import io.mosip.mimoto.exception.PlatformErrorMessages;
import io.mosip.mimoto.model.Event;
import io.mosip.mimoto.model.EventModel;
import io.mosip.mimoto.service.RestClientService;
Expand Down Expand Up @@ -131,6 +130,8 @@ static IssuerDTO getIssuerDTO(String issuerName) {
logo.setAlt_text("logo-url");
DisplayDTO display = new DisplayDTO();
display.setName(issuerName);
display.setTitle("Download via " + issuerName);
display.setDescription(issuerName + " description");
display.setLanguage("en");
display.setLogo(logo);
IssuerDTO issuer = new IssuerDTO();
Expand Down

0 comments on commit f70c038

Please sign in to comment.