cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori tools proxy add credentials

former_member5334
Participant
0 Kudos

Hi all.

@sap/ux-ui5-tooling - Connecting to a back-end system using fiori-tools-proxy. Can we add credentials (username/password) with env support please?

View Entire Topic

Hello Aleksandr,

there is already a basic env support for the credentials. Having a .env file in the project root with the following variables defined:

FIORI_TOOLS_USER=<YOUR_USER>

FIORI_TOOLS_PASSWORD=<YOUR_PASSWORD>

then fiori-tools-proxy will use those as credentials when connecting to the backend.

Best regards,

Zdravko

former_member5334
Participant
0 Kudos

Thanks, Zdravko

But if I have multiple backend?

server: customMiddleware: - name: fiori-tools-proxy afterMiddleware: compression configuration: ignoreCertError: true # If set to true, certificate errors will be ignored. E.g. self-signed certificates will be accepted backend: - path: /sap/opu/odata/sap/SRV1/ url: https://myurl1.com:7000 client: 100 - path: /sap/opu/odata/sap/SRV2/ url: https://myurl2.com:7000
0 Kudos

Hello as.karpov1,

the fiori-tools-proxy was extended with additional configuration. Now for each backend you can provide the following parameters: https://www.npmjs.com/package/@sap/ux-ui5-tooling#backend-configuration-options. So in your case you can use the "auth" property to set the user/pass for each backend.

Hope this helps!

Best regards,

Zdravko