diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index ac403c4..e319e4b 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -55,7 +55,7 @@ jobs: - uses: actions/checkout@v4 - name: Run Trivy vulnerability scanner in repo mode - uses: aquasecurity/trivy-action@0.19.0 + uses: aquasecurity/trivy-action@0.21.0 with: format: "sarif" output: "trivy-results.sarif" diff --git a/README.md b/README.md index 4b052f3..2bc8c0a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ + [![Issues](https://img.shields.io/github/issues/bcgov/nr-fam-idim-lookup-proxy)](/../../issues) [![Pull Requests](https://img.shields.io/github/issues-pr/bcgov/nr-fam-idim-lookup-proxy)](/../../pulls) [![MIT License](https://img.shields.io/github/license/bcgov/nr-fam-idim-lookup-proxy.svg)](/LICENSE) @@ -6,6 +7,11 @@ # Simple Webservice proxy for FAM +# Local Setup + +- Copy the content in the `local-dev.env` file and create a `.env` file. Update the value of the enviornment secrets (The secrets value can be found in our Openshift namespace e4bc30). +- Install the packages `npm install` +- Run the application `npm run start` # Acknowledgements diff --git a/backend/local-dev.env b/backend/local-dev.env new file mode 100644 index 0000000..8a9c754 --- /dev/null +++ b/backend/local-dev.env @@ -0,0 +1,5 @@ +API_KEY=thisisasecret +IDIM_WEB_SERVICE_URL=https://gws1.development.bceid.ca/webservices/Client/V10/BCeIDService.asmx?WSDL +IDIM_WEB_SERVICE_ID=thisisasecret +IDIM_WEB_SERVICE_USERNAME=thisisasecret +IDIM_WEB_SERVICE_PASSWORD=thisisasecret \ No newline at end of file diff --git a/backend/src/modules/idim-webservice/idim-webservice.dto.ts b/backend/src/modules/idim-webservice/idim-webservice.dto.ts index 2476e6b..dcb84f5 100644 --- a/backend/src/modules/idim-webservice/idim-webservice.dto.ts +++ b/backend/src/modules/idim-webservice/idim-webservice.dto.ts @@ -1,13 +1,13 @@ import { ApiProperty } from '@nestjs/swagger'; export enum SearchUserParameterType { - UserGuid = "userGuid", - UserId = "userId" - } + UserGuid = 'userGuid', + UserId = 'userId', +} export enum RequesterAccountTypeCode { Internal = 'Internal', - Business = 'Business' + Business = 'Business', } export class IDIRUserResponse { @@ -55,5 +55,3 @@ export class BCEIDUserResponse { @ApiProperty() email: string; } - -