Skip to content

Commit

Permalink
[[MOSIP-39115]]updated README.md
Browse files Browse the repository at this point in the history
Signed-off-by: techno-376 <[email protected]>
  • Loading branch information
Rakshitha650 authored and pvsaidurga committed Jan 31, 2025
1 parent 0406e2d commit 4cc8cf0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,29 @@ select option 1 (esignet-mock-plugin.jar).
* Onboarder [scripts](../partner-onboarder/).

### MOCK Plugin
* Download postman collection from [here](../postman-collection)
* Fetch auth token from esignet keycloak. Update the "client_secret" in the request body.
* Run the request under "OIDC Client Mgmt" -> "Mock" -> "Get Auth token"
* Run the requests under

a. "OIDC Client Mgmt" -> "Mock" -> "Get CSRF token"

b. "OIDC Client Mgmt" -> "Mock" -> "Create OIDC client"
Download and import eSignet-with-mock.postman_environment.json and eSignet.postman_collection.json postman collection from [here](../postman-collection))
# OIDC Client Management Instructions
1. Fetch the Authentication Token
Navigate to "OIDC Client Mgmt" → "Mock" → "Get Auth Token" to retrieve the authentication token.
* Update the client_secret (retrieve it from the keycloak-client-secrets).
* Update the iam_url (Keycloak URL) in the request body.
* Retrieve the Keycloak URL from the config-map under keycloak-host → keycloak-external-url.
2. Fetch the CSRF Token
* Navigate to "OIDC Client Mgmt" → "Mock" → "Get CSRF Token" to obtain the CSRF token.
3. Update the Request Fields for OIDC Client Creation
* Before executing the "Create OIDC Client" request, update the following fields in the request body:
* url
* logo-uri
* redirect-uri
* client-name
* client-id
4. Update the clientId in Deployment
* Once the clientId is created and activated, update the clientId in the mock-relying-party-ui deployment.
5. Update the Client Private Key
* Retrieve the `client-private-key` from the **eSignet-with-mock** Postman environment, as shown in the image below:
* ![postman-image.png](./postman-image.png)
* Encode the retrieved `client-private-key` using Base64.
* Update the Base64-encoded `client-private-key` in the **mock-relying-party service secret**.

### NOTE:
This deployment is limited to mock
Expand Down
Binary file added deploy/postman-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4cc8cf0

Please sign in to comment.