on 09-01-2022 12:42 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:7000Hello 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
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.