Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the reference for camdgc (#1153) #1155

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void setUp() {
when(mockKeyBindingWrapperService.getSupportedChallengeFormats(Mockito.anyString()))
.thenReturn(Arrays.asList("jwt", "alpha-numeric"));

captchaHelper = new CaptchaHelper(restTemplate, "https://api-internal.camdgc-dev1.mosip.net/v1/captcha/validatecaptcha",
captchaHelper = new CaptchaHelper(restTemplate, "https://test-api.example.com/v1/captcha/validatecaptcha",
"esignet", List.of("binding-otp"));

ReflectionTestUtils.setField(keyBindingService, "keyBindingWrapper", mockKeyBindingWrapperService);
Expand Down
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.
Loading