Skip to content

ID-Repository is the Github repository from Release 1.2 for hosting modules related to Identity and credential.

License

Notifications You must be signed in to change notification settings

manishpandey0108/id-repository

 
 

Repository files navigation

ID Repository

ID Repository acts as a repository of Identity details of an Individual, and provides API based mechanism to store and retrieve Identity details by Registration Processor module.

Following are the pre-requisites for storing or retrieving Identity authentication of an individual

  1. ID Repository accepts ID JSON in the format as provided by the country in ID Schema
  2. ID JSON present in ID Repository APIs gets validated against IdObjectValidator.

ID Repository Documentation

Dependencies

ID Repository dependencies are mentioned below. For all Kernel services refer to commons repo

  • id-repository-identity-service

    • kernel-auditmanager-service
    • kernel-auth-service
    • kernel-config-server
    • kernel-cryptomanager-service
    • kernel-masterdata-service
    • kernel-fsadapter-hdfs
  • id-repository-vid-service

    • kernel-auditmanager-service
    • kernel-auth-service
    • kernel-config-server
    • kernel-cryptomanager-service
    • kernel-vidgenerator-service
    • id-repository-identity-service

Configuration

Configurations used for ID Repo are available in mosip-config

Build

Below command should be run in the parent project id-repository mvn clean install

Deploy

Below command should be executed to run any service locally in specific profile and local configurations -

java -Dspring.profiles.active=<profile> -jar <jar-name>.jar

Below command should be executed to run any service locally in specific profile and remote configurations -

java -Dspring.profiles.active=<profile> -Dspring.cloud.config.uri=<config-url> -Dspring.cloud.config.label=<config-label> -jar <jar-name>.jar

Below command should be executed to run a docker image -

docker run -it -p <host-port>:<container-port> -e active_profile_env={profile} -e spring_config_label_env= {branch} -e spring_config_url_env={config_server_url} <docker-registry-IP:docker-registry-port/<docker-image>

Sample Build and Deployment commands:

docker run -it -d -p 8090:8090 -e active_profile_env={profile}  -e spring_config_label_env= {branch} -e spring_config_url_env={config_server_url} docker-registry.mosip.io:5000/id-repository-identity-service

docker run -it -d -p 8091:8091 -e active_profile_env={profile}  -e spring_config_label_env= {branch} -e spring_config_url_env={config_server_url} docker-registry.mosip.io:5000/id-repository-vid-service

Test

Automated functional tests are available in Functional Tests repo

Documentation

MOSIP documentation is available on Wiki

ID Repository documentation is available on : ID Repository Documentation

ID Repository API documentation available on Wiki: ID Repository APIs

License

This project is licensed under the terms of Mozilla Public License 2.0

About

ID-Repository is the Github repository from Release 1.2 for hosting modules related to Identity and credential.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 94.1%
  • Shell 4.5%
  • Dockerfile 1.4%