0.0.1 • Published 4 years ago

ui5-middleware-basic-authentications v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

ui5-middleware-basic-authentications

UI5 Middleware to access protected resource using multiple configuration for basic authentication, is possible use .env properties PROXY_USERNAME and PROXY_PASSWORD to define username and password, if it is necessary use additional user and passwords for new connections configurations in ui5.yaml.

Middleware for ui5-server, enabling proxy support.

Install

npm install ui5-middleware-basic-authentications --save-dev

Configuration options (in $yourapp/ui5.yaml)

  • ServiceURL: string service end point username string of username password string of password

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    "ui5-middleware-basic-authentications": "*"
},
"ui5": {
  "dependencies": [
    "ui5-middleware-basic-authentications"
  ]
}

As the devDependencies are not recognized by the UI5 tooling, they need to be listed in the ui5 > dependencies array. In addition, once using the ui5 > dependencies array you need to list all UI5 tooling relevant dependencies.

  1. configure it in $yourapp/ui5.yaml:
server:
  customMiddleware:
  - name: ui5-middleware-basic-authentications
    mountPath: /mounting_point
    afterMiddleware: ui5-middleware-simpleproxy
    configuration:
      ServiceURL: "ServiceURL"
      username: "username" is possible use .env PROXY_USERNAME
      password: "password" is possible use .end PROXY_PASSWORD