# Inji Component system

**URL:** <https://community.mosip.io/t/inji-component-system/1562>\
**Category:** Support\
**Tags:** inji\
**Created:** [September 20, 2024, 6:22am UTC](https://community.mosip.io/t/inji-component-system/1562 "2024-09-20T06:22:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 20, 2024, 6:22am UTC](https://community.mosip.io/t/inji-component-system/1562/1 "2024-09-20T06:22:35Z")

</div>

Hi Team,  
How to run the Inji backend service code in local. Please the documentation, required files and which tag used to clone from github.

Do you have the same backend service code(mimoto) for inji web and mobile.

Thanks,  
Narayana prakash.k

---

<div class="post-metadata">

**Author:** ![svahsek](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/svahsek/32/1098_2.png) [@svahsek](https://community.mosip.io/u/svahsek)\
**Post date:** [September 23, 2024, 9:59am UTC](https://community.mosip.io/t/inji-component-system/1562/2 "2024-09-23T09:59:13Z")

</div>

Hi @narayana_prakash,

Inji documentation is here [Inji | Inji](http://docs.mosip.io/inji). For the tag please refer to to respective ‘Release’ sections which also helps you with ‘Compatibile Module’.

“Do you have the same backend service code(mimoto) for inji web and mobile.” - Yes.

Best Regards  
Team MOSIP

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 23, 2024, 10:27am UTC](https://community.mosip.io/t/inji-component-system/1562/3 "2024-09-23T10:27:34Z")

</div>

Hi @svahsek

Thanks for sharing the details. While run the mimoto application backend source code in local, Facing the below error. Couple of times posted this issue but didn’t get response from you. Please look into that and provide the solution for that.

Thanks in advance!

**Error** : I/O error on POST request for “**[https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token](https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token)**”: Connect to [iam.dev2.mosip.net:443](http://iam.dev2.mosip.net:443) [[iam.dev2.mosip.net/172.31.19.206](http://iam.dev2.mosip.net/172.31.19.206)] failed: Connection timed out: connect; nested exception is org.apache.http.conn.HttpHostConnectException: Connect to [iam.dev2.mosip.net:443](http://iam.dev2.mosip.net:443) [[iam.dev2.mosip.net/172.31.19.206](http://iam.dev2.mosip.net/172.31.19.206)] failed: Connection timed out: connect

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 23, 2024, 11:18am UTC](https://community.mosip.io/t/inji-component-system/1562/4 "2024-09-23T11:18:11Z")

</div>

@narayana_prakash  
how are we running mimoto locally through docker-compose or direct as spring boot app?  
If we are using direct as sprint boot, can you please add below property in application-local.properties file

> <https://github.com/mosip/mimoto/blob/main/docker-compose/config/mimoto-default.properties#L2>

> <https://github.com/mosip/mimoto/blob/main/docker-compose/config/mimoto-default.properties#L4>

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 23, 2024, 11:40am UTC](https://community.mosip.io/t/inji-component-system/1562/5 "2024-09-23T11:40:53Z")

</div>

@swatigoel Thanks for your response. As request Added the property in application properties file.

**Facing the below error** :

I/O error on POST request for “[http://websub.websub/hub/](http://websub.websub/hub/)”: websub.websub; nested exception is java.net.UnknownHostException: websub.websub

1)Which branch need to checkout?  
2)Will mimoto work as independently without eSignet in local as spring boot application?  
3)Should I replaced that below mentioned lines property only or whole properties into the application-local?

**properties** : 1. server.port=8099  
2. server.servlet.context-path=/residentmobileapp  
3. health.config.enabled=false  
4. mosip.service.end-points=/\*\*/\*  
5. mosipbox.public.url=[http://localhost](http://localhost):${server.port}  
6. mosip.api.public.url=[http://localhost](http://localhost):${server.port}  
7. mosip.resident.url=[https://api.collab.mosip.net/v1/resident](https://api.collab.mosip.net/v1/resident)  
8. mosip.esignet.host=[https://esignet.collab.mosip.net](https://esignet.collab.mosip.net)  
9. keycloak.external.url=[https://iam.collab.mosip.net/](https://iam.collab.mosip.net/)  
10. mosip.kernel.authmanager.url=[http://authmanager.kernel/](http://authmanager.kernel/)  
11. mosip.websub.url=[http://websub.websub/](http://websub.websub/)

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 23, 2024, 12:24pm UTC](https://community.mosip.io/t/inji-component-system/1562/6 "2024-09-23T12:24:44Z")

</div>

@narayana_prakash you can ignore websub error for local setup.

Mimoto will work as independently without esignet if we are depending on esignet of sandbox(collab) env.  
If we have esignet running locally, we need to update mosip.esignet.host with local instance of esignet.

mosipbox.public.url, mosip.api.public.url are to access mimoto apis.

mosip.resident.url, keycloak.external.url, mosip.kernel.authmanager.url and mosip.websub.url you can ignore.

We need server.servlet.context-path=/residentmobileapp and mosip.service.end-points=/\*\*/\* to avoid api authentication for local setup.

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 23, 2024, 12:32pm UTC](https://community.mosip.io/t/inji-component-system/1562/7 "2024-09-23T12:32:35Z")

</div>

@swatigoel As told, Added the below points in application-local properties but facing the same issue at run time.

server.servlet.context-path=/residentmobileapp  
mosip.service.end-points=/\*\*/\*

**Error** : I/O error on POST request for “[https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token](https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token)”

Could you please tell which branch need to check out?

**Already having these below properties in application-local:**

mosipbox.public.url=[https://api-internal.dev2.mosip.net](https://api-internal.dev2.mosip.net)  
public.internet.url=[https://api.dev2.mosip.net](https://api.dev2.mosip.net)  
public.url=[https://api-internal.dev2.mosip.net](https://api-internal.dev2.mosip.net)  
**keycloak.internal.url=[https://iam.dev2.mosip.net/](https://iam.dev2.mosip.net/)**

Will it connect the keycloak url directly or need to set up the any url to access that?

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 23, 2024, 12:53pm UTC](https://community.mosip.io/t/inji-component-system/1562/8 "2024-09-23T12:53:03Z")

</div>

I am assuming you are using main or release-0.13.x branch.  
No, we don’t need to setup keycloak as we are disabling authentication for local setup.

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 23, 2024, 1:03pm UTC](https://community.mosip.io/t/inji-component-system/1562/9 "2024-09-23T13:03:08Z")

</div>

@swatigoel Currently using main branch for mimoto.  
Java version : 11

Then Why this error throwing at run time.

org.springframework.web.client.ResourceAccessException: I/O error on POST request for “[https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token](https://iam.dev2.mosip.net/auth/realms/mosip/protocol/openid-connect/token)”: Connect to [iam.dev2.mosip.net:443](http://iam.dev2.mosip.net:443) [[iam.dev2.mosip.net/172.31.19.206](http://iam.dev2.mosip.net/172.31.19.206)] failed: Connection timed out: connect; nested exception is org.apache.http.conn.HttpHostConnectException: Connect to [iam.dev2.mosip.net:443](http://iam.dev2.mosip.net:443) [[iam.dev2.mosip.net/172.31.19.206](http://iam.dev2.mosip.net/172.31.19.206)] failed: Connection timed out: connect  
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:732) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:680) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:466) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at io.mosip.kernel.auth.defaultadapter.helper.TokenHelper.getClientToken(TokenHelper.java:80) ~[kernel-auth-adapter-1.2.0.1-B1.jar:na]  
at io.mosip.kernel.auth.defaultadapter.config.SelfTokenRestInterceptor.intercept(SelfTokenRestInterceptor.java:67) ~[kernel-auth-adapter-1.2.0.1-B1.jar:na]  
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at brave.spring.web.TracingClientHttpRequestInterceptor.intercept(TracingClientHttpRequestInterceptor.java:53) ~[brave-instrumentation-spring-web-5.6.1.jar:na]  
at org.springframework.cloud.sleuth.instrument.web.client.LazyTracingClientHttpRequestInterceptor.intercept(TraceWebClientAutoConfiguration.java:293) ~[spring-cloud-sleuth-core-2.0.4.RELEASE.jar:2.0.4.RELEASE]  
at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:76) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:723) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:698) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:619) ~[spring-web-5.0.6.RELEASE.jar:5.0.6.RELEASE]  
at io.mosip.mimoto.util.RestApiClient.getApi(RestApiClient.java:102) ~[classes/:na]  
at io.mosip.mimoto.util.Utilities.getJson(Utilities.java:190) ~[classes/:na]  
at io.mosip.mimoto.util.Utilities.getIssuersConfigJsonValue(Utilities.java:292) ~[classes/:na]  
at io.mosip.mimoto.service.impl.IssuersServiceImpl.getAllIssuersWithAllFields(IssuersServiceImpl.java:86) ~[classes/:na]  
at io.mosip.mimoto.config.IssuersValidationConfig.run(IssuersValidationConfig.java:35) ~[classes/:na]  
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:788) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]  
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:778) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]  
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) ~[spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]  
at io.mosip.mimoto.MimotoServiceApplication.main(MimotoServiceApplication.java:73) ~[classes/:na]  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]  
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]  
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]  
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.0.2.RELEASE.jar:2.0.2.RELEASE]

Should i do any other process for running the application?

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 24, 2024, 5:36am UTC](https://community.mosip.io/t/inji-component-system/1562/10 "2024-09-24T05:36:36Z")

</div>

@swatigoel Could you please respond for the above message?

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 24, 2024, 9:44am UTC](https://community.mosip.io/t/inji-component-system/1562/11 "2024-09-24T09:44:16Z")

</div>

@narayana_prakash can you please try adding following in application-local.properties file.

server.port=8099  
server.servlet.context-path=/residentmobileapp  
health.config.enabled=false  
mosip.service.end-points=/\*\*/\*

mosipbox.public.url=[http://localhost](http://localhost):${server.port}  
mosip.api.public.url=[http://localhost](http://localhost):${server.port}  
public.url=${mosip.api.public.url}

mosip.iam.adapter.disable-self-token-rest-template=false  
mosip.auth.filter\_disable=true (this properties already exists with value false, please make it true)

For local setup with docker-compose, we have updated properties and can be referred here [mimoto/docker-compose/config/mimoto-default.properties at main · mosip/mimoto · GitHub](https://github.com/mosip/mimoto/blob/main/docker-compose/config/mimoto-default.properties)

with our upcoming release, we will fix application-local.properties file as well.

Please let me know if you still face the issue.

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 26, 2024, 6:19pm UTC](https://community.mosip.io/t/inji-component-system/1562/12 "2024-09-26T18:19:51Z")

</div>

@narayana_prakash did you get chance to try this?

---

<div class="post-metadata">

**Author:** ![narayana\_prakash](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/narayana_prakash/32/853_2.png) [@narayana\_prakash](https://community.mosip.io/u/narayana_prakash)\
**Post date:** [September 27, 2024, 9:22am UTC](https://community.mosip.io/t/inji-component-system/1562/13 "2024-09-27T09:22:21Z")

</div>

Hi @swatigoel Again facing the same issue.

Please answer the below list:  
1)How login authentication will happen in offline at Inji mobile app.  
2)How data storing and processing in offline at Inji app.

---

<div class="post-metadata">

**Author:** ![swatigoel](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/swatigoel/32/751_2.png) [@swatigoel](https://community.mosip.io/u/swatigoel)\
**Post date:** [September 27, 2024, 9:51am UTC](https://community.mosip.io/t/inji-component-system/1562/14 "2024-09-27T09:51:20Z")

</div>

Hi @narayana_prakash for running mimoto locally, it would be good to connect and debug.  
For the queries you have for offline mode:

1. which login authentication you are referring to? Is it same authentication that we have in download VC flow. For downloading the VC, we need internet.
2. For data storing and processing - once user downloads the VC (being online), VC gets stored in internal storage on device. Post that if user goes offline and relaunch the app, same VC will be restored from storage. User can share that VC with relying party over BLE (Bluetooth Low Energy)
