This repository contains the reference implementation of a relying party's website that wants to use MOSIP's IDP (Identity Provider) services to log in users into its portal.
This portal uses OpenID specs to communicate with MOSIP IDP Services.
This portal contains 2 pages.
-
Home Page: This page represents the login screen for the relying party's website. This page includes a button with the text, "Sign in with MOSIP". On the click this button, the user gets redirected to the MOSIP's IDP Portal. The user now has to authenticate and provide consent to share information from MOSIP to relying party, on the IDP portal.
-
User Profile Page: This page shows the user profile on the relying party's website. On successful authentication and consent approval, the user gets navigated to this page with an Auth Code. This Auth Code would be shared with the relying party's backend service via the
/fetchUserInfo
endpoint. The backend then uses the Auth Code to fetch the access token and user details from MOSIP IDP services.