Signet
GitHubCommunityWhat's New
  • eSignet
  • Overview
    • Features
      • Signup Portal
    • Principles
    • Standards & Security
    • License
  • Develop
    • Technology
      • Technology Stack
      • Components - eSignet
      • Components - Signup Portal
      • API
    • Configure eSignet
      • ACR
      • Claims
      • .well-known
        • jwks.json
        • oauth-configuration
        • openid-configuration
  • Test
    • Try It Out
      • Using Mock Data
      • Register Yourself
      • Integrate with eSignet
    • End User Guide
      • Health Portal
        • Login with Biometrics
        • Login with Password
        • Login with OTP
        • Login with QR code (Inji)
        • Knowledge Based Identification
        • Signup and Login with OTP for Verified Claims
    • Integration Guides - eSignet
      • Authenticator Plugin
      • Key Binder Plugin
      • Audit Plugin
      • Digital Wallet
        • Credential Holder
        • Wallet Authenticator
      • Relying Party
    • Integration Guide
      • Identity Verifier Plugin
      • Profile Registry Plugin
      • Integration with eSignet portal
  • Deploy
    • Deployment Architecture
      • On-Prem Installation Guidelines
    • Local Deployment
      • Mock Identity System
      • Mock Relying Party
  • Interoperability
    • MOSIP
    • Inji
    • OpenCRVS
  • Roadmap and Releases
    • Roadmap
      • Roadmap 2025
      • Roadmap 2024
    • Releases
      • v1.6.0
      • v1.5.1
        • Test Report
      • v1.5.0
        • Test Report
      • v1.4.2
      • v1.4.1
        • Test Report
      • v1.4.0
        • Test Report
      • v1.3.0
        • Test Report
      • v1.2.0
        • Test Report
      • v1.1.0
        • Test Report
      • v1.0.0
        • Test Report
      • v0.9.0
        • Test Report
  • Community
    • Code Contribution
    • Code of Conduct
  • General
    • Resources
    • FAQs
    • Glossary
Powered by GitBook

Copyright © 2021 MOSIP. This work is licensed under a Creative Commons Attribution (CC-BY-4.0) International License unless otherwise noted.

On this page
  • Mock relying party UI
  • Mock relying party service
  • How to build and run the mock relying party portal locally?

Was this helpful?

Edit on GitHub
Export as PDF
  1. Deploy
  2. Local Deployment

Mock Relying Party

This guide helps in setting up the mock OIDC-relying party portal. This portal uses the authorization code flow with private key JWT client authentication to fetch the user profile.

The mock relying party portal is built with reactJS. This consists of the below two components:

  1. mock-relying-party-ui

  2. mock-relying-party-service

Mock relying party UI

UI component consists of the login page and a user profile page.

The login webpage is built with the Log in with eSignet button. With the click of this button, the user is redirected to the authorization endpoint of the eSignet UI.

The user profile "/userprofile" webpage is crafted to which the eSignet server redirects after successful authentication with "auth-code".

On a load of the user profile webpage, the "/fetchUserInfo" endpoint of the mock-relying-party service is invoked with a valid auth code.

Mock relying party service

This service only hosts the "/fetchUserInfo" endpoint.

The "/fetchUserInfo" endpoint will invoke the "/token" endpoint of the eSignet server with client_private_jwt auth.

On receiving the id-token and access-token from the "/token" endpoint, the mock-relying-party-service invokes the "/userinfo" endpoint of the eSignet server to fetch user details. Decoded user info is returned as the response to the "/fetchUserInfo" endpoint.

How to build and run the mock relying party portal locally?

To build and run the mock relying party portal please refer to the below README.md file

Last updated 5 months ago

Was this helpful?

https://github.com/mosip/esignet-mock-services/blob/master/docker-compose/README.mdgithub.com