This repository contains source code and design documents for MOSIP ID Authentication which is the server-side module to manage ID Authentication. The modules exposes API endpoints.
Refer to SQL scripts.
The project requires JDK 21.0.3 and mvn version - 3.9.6
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
This is for better compatibility with future PostgreSQL versions.
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
This is to maintain compatibility with existing ANT-style path patterns.
- Build and install:
$ cd authentication $ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true - Build Docker for a service:
$ cd <service folder> $ docker build -f Dockerfile
<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-auth-adapter</artifactId>
<version>${kernel.auth.adapter.version}</version>
</dependency>
Configuration-id-authenticationand Configuration-id-authentication-external and Configuration-id-authentication-internal and Configuration-id-authentication-otp and Configuration-Application defined here.
- Set KUBECONFIG variable to point to existing K8 cluster kubeconfig file:
export KUBECONFIG=~/.kube/<k8s-cluster.config>
$ cd deploy
$ ./install.sh
$ cd deploy
$ ./delete.sh
$ cd deploy
$ ./restart.sh
Automated functional tests available in api-test folder.
API documentation is available here.
This project is licensed under the terms of Mozilla Public License 2.0.