Registry / web-framework / ui5-middleware-proxy-basicauth

ui5-middleware-proxy-basicauth

JSON →
library0.0.6jsnpmunverified

UI5 middleware for adding basic authentication to proxy requests in UI5 tooling (v0.0.6). It extends the simple proxy from the ui5-ecosystem-showcase, allowing developers to proxy OData or other services behind Basic Auth. Key differentiator: integrates seamlessly with UI5's custom middleware configuration (ui5.yaml) and reads credentials from environment variables (.env). Release cadence: low; last update was 2021. Compared to alternatives like ui5-middleware-proxy, this adds built-in auth support without extra libraries.

npm install ui5-middleware-proxy-basicauth
INSTALL
IMPORT
SIG · UI5-MIDDLEWARE-PRO
U
ui5-middleware-proxy-basicauth
web-frameworkjavascriptv0.0.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Configures the middleware in UI5's ui5.yaml and sets Basic Auth credentials via environment variables.

// Not a library with JS imports; configured in ui5.yaml. // Example ui5.yaml: server: customMiddleware: - name: ui5-middleware-proxy-basicauth afterMiddleware: compression mountPath: /odata configuration: baseUri: "http://services.odata.org" client: "110" // Set credentials in .env: PROXY_USERNAME=yourusername PROXY_PASSWORD=yourpassword
Debug
Known issues
gotchaCredentials must be defined in .env file; otherwise, proxy fails silently.
fix
Set PROXY_USERNAME and PROXY_PASSWORD environment variables.
affects: >=0.0.0
gotchaThe middleware requires the UI5 tooling dependency to be declared in both devDependencies and ui5.dependencies in package.json.
fix
Add the package to both sections as shown in README.
affects: >=0.0.0
gotchamountPath must be a path prefix (e.g., /odata); otherwise, requests may not match.
fix
Specify mountPath starting with /.
affects: >=0.0.0
deprecatedThis package has not been updated since 2021 and may not support newer UI5 versions.
fix
Check compatibility or consider using a maintained alternative.
affects: =0.0.6
Errors
Common errors & fixes
Error: Cannot find module 'ui5-middleware-proxy-basicauth'
Package not installed or not declared in ui5.dependencies.
fix
Run 'npm install ui5-middleware-proxy-basicauth --save-dev' and add to ui5.dependencies in package.json.
Proxy returns 401 Unauthorized
Missing or incorrect Basic Auth credentials in .env.
fix
Ensure .env file exists with PROXY_USERNAME and PROXY_PASSWORD set correctly.
No middleware with name 'ui5-middleware-proxy-basicauth' found
Middleware name mismatch in ui5.yaml or missing dependency declaration.
fix
Verify the 'name' field matches exactly 'ui5-middleware-proxy-basicauth' and the package is installed.
TypeError: Cannot read property 'proxy' of undefined
Configuration object missing 'baseUri' property.
fix
Add 'baseUri' under 'configuration' in ui5.yaml.
Upgrade
Version history
0.0.6latest on npm
Audit
Dependencies
@ui5/serverrequiredRequired for custom middleware support in UI5 tooling
Agent activity
27 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
ui5-middleware-proxy-basicauth — npm install ui5-middleware-proxy-basicauth · libregistry