GithubHelp home page GithubHelp logo

mosip / partner-management-services Goto Github PK

View Code? Open in Web Editor NEW
5.0 13.0 94.0 60.05 MB

contains services for partner management

License: Mozilla Public License 2.0

Java 90.24% Shell 0.94% Dockerfile 0.39% Smarty 0.21% HTML 2.14% Handlebars 6.08%

partner-management-services's Introduction

Partner Management Services (PMS)

Maven Package upon a push Quality Gate Status

Overview

This repository contains the source code MOSIP Partner Management module. For an overview refer here. The module exposes API endpoints. For a reference front-end UI implementation refer to PMS Revamp UI Partner-management UI github repo

Partnermanagement module contains following services:

  1. Partner management service
  2. Policy management service

Databases

Refer to SQL scripts.

Build & run (for developers)

The project requires JDK 1.11.

  1. Build and install:
    $ cd kernel
    $ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
    
  2. Build Docker for a service:
    $ cd <service folder>
    $ docker build -f Dockerfile
    

Deployment in K8 cluster with other MOSIP services:

Pre-requisites

  • Set KUBECONFIG variable to point to existing K8 cluster kubeconfig file:
    • export KUBECONFIG=~/.kube/<my-cluster.config>
      

Install

  $ cd deploy
  $ ./install.sh

Delete

  $ cd deploy
  $ ./delete.sh

Restart

  $ cd deploy
  $ ./restart.sh

Config

Add below property to partner-management-default.properties file in mosip-config repository to Deploy PMS Revamp 1.3.0-DP.1 release in your env.

## This property is used by kernel-authcodeflowproxy-api to check request is coming from allowed urls not.
auth.allowed.urls=https://${mosip.pmp.host}/,https://${mosip.pmp.reactjs.ui.host}/

Test

Automated functional tests available in Functional Tests repo.

APIs

API documentation is available here.

License

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

partner-management-services's People

Contributors

anadi avatar balaji-alluru avatar bhumi46 avatar ckm007 avatar dhanendra06 avatar gaganamadival avatar gokulraj136 avatar gsasikumar avatar harishmejari8496 avatar hosurkrishnan avatar kameshsr avatar mahesh-binayak avatar mandeepdhiman123 avatar mayuradesh avatar nagarjunakuchi avatar nayakrounak avatar prafulrakhade avatar rakshitha650 avatar rakshithb1 avatar rambhatt1591 avatar sadanandegowda avatar sanjeevkumarsrivastava avatar saumyamosip avatar sohandey avatar sudeep7353 avatar swethakrish4 avatar syedsalman3753 avatar tabishkhan7 avatar vsivakalyan avatar yashmsonkusare avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

partner-management-services's Issues

BUG: Approving device using the API PATCH partnermanagement/v1/partners/DeviceDetail fails

When sending the request to the API endpoint,
PATCH partnermanagement/v1/partners/DeviceDetail it fails with this error:

{
  "id": null,
  "version": null,
  "responsetime": "2021-01-25T13:04:45.119Z",
  "metadata": null,
  "response": null,
  "errors": {
    "errorCode": null,
    "message": "Null value was assigned to a property [class io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted] of primitive type setter of io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property [class io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted] of primitive type setter of io.mosip.pmp.regdevice.entity.RegDeviceDetail.isDeleted"
  }
}

Post digitalcertificate API is not working

When I call the digitalcertificate API it returns the below error in logs, I can see that the signatureValue & responseCookies arre not initialized anywhere in the code which cause the below error.

I have another question, how is this certificate linked to a partner although the API does not accept partner ID as input.

2020-07-29 23:18:18,116 [http-nio-9103-exec-3] INFO [i.m.p.p.s.i.PartnerServiceImpl].uploadDigitalCertificate.570 : Request Preparation for DigitalCertificate
2020-07-29 23:18:18,117 [http-nio-9103-exec-3] INFO [i.m.p.p.s.i.PartnerServiceImpl].uploadDigitalCertificate.579 : Decryption error, Sign Require
2020-07-29 23:18:18,118 [http-nio-9103-exec-3] INFO [i.m.p.p.s.i.PartnerServiceImpl].uploadDigitalCertificate.580 : Signature Require
2020-07-29 23:18:18,118 [http-nio-9103-exec-3] INFO [i.m.p.p.s.i.PartnerServiceImpl].uploadDigitalCertificate.598 : Authentication Failed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.