Build toolBuild tooltypeRuns at build time. Nothing of it ships in the deployed application.See every one →What this type is →by a community orgby a community orgoriginPublished by a community organisation, so it outlives any one maintainer.See every one →

ui5-middleware-onelogin

A UI5 dev-server middleware that logs into a system such as SAP Gateway with headless Playwright on the first request and reuses the session cookie for every later request.

On the first request, this logs in to the configured system with the credentials it is given, running Playwright headless to do so, and saves the resulting cookie for every request after that, so only the first request pays the login cost. It has been tested against Azure AD, Google, OpenAM and SAP Gateway login pages, and can use a client certificate instead of a username and password. It defaults to the Fiori launchpad path, /sap/bc/ui2/flp, but the subdirectory can be pointed at another login-protected page, such as an SAP MII property servlet.

Facts

Latestv3.9.1ReleasedLast pushLicenceApache-2.0

Where it sits

Lives in
Provides
Build and dev-server toolingUI5Build and dev-server toolingcapabilityServing an app locally and building it for deployment — proxying a backend, transpiling, bundling, and shaping the result for whatever will host it.

Who is behind it

UI5 CommunityUI5 CommunityOrganisationMaintains this
In the atlas: maintains 69
@ui5-community
maintainerDimitar FenerskiPersonContributes to this
In the atlas: contributes to 23
@dfenerski
Florian VogtPersonContributes to this
In the atlas: contributes to 50, wrote 2
@flovogt
Marian ZeisPersonContributes to this
In the atlas: maintains 35, contributes to 86, wrote 25
@marianfoo
Fabian ReinboldPersonContributes to this
In the atlas: contributes to 7
@menof36go
Peter MuessigPersonContributes to this
In the atlas: maintains 14, contributes to 80, wrote 1
@petermuessig
Jakob Marius KjaerPersonContributes to this
In the atlas: maintains 2, contributes to 24, wrote 1
@uxkjaer
Volker BuzekPersonContributes to this
In the atlas: maintains 7, contributes to 53, wrote 2
@vobu
7 contributors

What it declares

Every artifact

Type
Build tool
Origin
By a community org

As a build tool

Distributed through
npm

Connections1

Install

npm add ui5-middleware-onelogin

Derived from the package name. No recipe recorded; the README has the configuration.

README

quoted from ui5-community/ui5-ecosystem-showcase under Apache-2.0, read
ui5-community/ui5-ecosystem-showcase/packages/ui5-middleware-onelogin/README.mdOn GitHub

UI5 onelogin middleware

👋 This is an open‑source, community‑driven project, developed and actively monitored by members of the UI5 community. You are welcome to use it, report issues, contribute enhancements, and support others in the community.

Middleware for ui5-server, enabling a generic login support.

The middleware will on first request try to login with the provided credentials and save the cookie for further requests. This uses playwright in a headless mode to run the login process. The first request will take longer.

This has been tested with Azure AD, Google, OpenAM and the SAP Gateway login pages.

Merge requests with other login handlers are more than welcome via pull request.

Prerequisites

⚠️ UI5 CLI Compatibility All releases of this UI5 CLI extension using the major version 3 require UI5 CLI V3. Any previous releases below major version 3 (if available) also support older versions of the UI5 CLI. But the usage of the latest UI5 CLI is strongly recommended!

Install

npm install ui5-middleware-onelogin --save-dev

Configuration options (in $yourapp/ui5.yaml)

Currently you can define the properties in the configuration (see below) or the following environment variables are used.

  • path: string either the url or the hostname and port of the SAP system
  • subdirectory(optional): string the subdirectory that is appended to the path, defaults to the fiori launchpad at /sap/bc/ui2/flp
  • username(optional): string Username to be used to login to the launchpad
  • password(optional): stringPassword used to login
  • useCertificate(optional): boolean use a certificate to login instead of username and password
  • debug(optional): boolean true will open up the playwright browser so you can see what's going on

NB1: If you choose to use the certificate login then check the property AutoSelectCertificateForUrls in chrome://policy if it holds the url pattern for your system. Playwright has an issue to handle the certificate prompt. Another workaround is to set debug and useCertificate to true in the configuration and press ok when the prompt opens

NB2: If your system does not host a fiori launchpad, you will have to adjust the subdirectory to point to a different login protected page. In the case of a MII java stack that hosts an OData service, try setting subdirectory to XMII/PropertyAccessServlet?Mode=List

You can either add the following properties to your .env file, remember to add that to your .gitignore

  • UI5_MIDDLEWARE_ONELOGIN_LOGIN_URL or UI5_MIDDLEWARE_SIMPLE_PROXY_BASEURI
  • UI5_MIDDLEWARE_ONELOGIN_LOGIN_SUBDIRECTORY
  • UI5_MIDDLEWARE_ONELOGIN_USERNAME
  • UI5_MIDDLEWARE_ONELOGIN_PASSWORD
  • UI5_MIDDLEWARE_ONELOGIN_USE_CERTIFICATE
  • UI5_MIDDLEWARE_ONELOGIN_QUERY or UI5_MIDDLEWARE_SIMPLE_PROXY_QUERY
  • UI5_MIDDLEWARE_ONELOGIN_DEBUG

Use of environment variables or values set in a .env file will be used.

Other options is to either set it in the yaml file or if left blank it will prompt you for the details.

You can choose to just add the url and let the rest be prompted in the terminal Login prompt

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-middleware-onelogin": "*"
    // ...
}
  1. configure it in $yourapp/ui5.yaml:
server:
  customMiddleware:
    - name: ui5-middleware-onelogin
      afterMiddleware: compression
      configuration:
        path: <Login URL>
        username: <Login User>
        password: <Login Password>
        useCertificate: true / false (use a certificate to login instead of username and password)
        debug: true / false (true will open up the playwright browser so you can see what's going on)
        query:
          sap-client: "206"

License

This work is licensed under Apache 2.0.

Built with care (and a lot of caffeine). If this helped you build, test, or ship, the next coffee — or drink — is on you when you bump into a contributor.

Apache-2.0, read

History

Latest

v3.9.1

Notes

Note: Version bump only for package ui5-middleware-onelogin

  1. v3.9.0

    Features 1

    Notes
    Features
  2. v3.8.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  3. v3.8.0

    Features 1

    Notes
    Features
  4. v3.7.4

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  5. v3.7.3

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  6. v3.7.2

    Fixes 1

    Notes
    Bug Fixes
  7. v3.7.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  8. v3.7.0

    Features 1

    Notes
    Features
  9. v3.6.3

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  10. v3.6.2

    Fixes 1

    Notes
    Bug Fixes
  11. v3.6.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  12. v3.6.0

    Features 1

    Notes
    Features
    • enhanced v4 compat + update dependencies (#1070) (2d7ed16)
  13. v3.5.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  14. v3.5.0

    Features 1

    Notes
    Features
    • ui5-middleware-onelogin: allow changing login subdirectory & retry certificate sign-on (#1053) (4729e5e)
  15. v3.4.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  16. v3.4.0

    Features 1

    Notes
    Features
  17. v3.3.8

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  18. v3.3.7

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  19. v3.3.6

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  20. v3.3.5

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  21. v3.3.4

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  22. v3.3.3

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  23. v3.3.2

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  24. v3.3.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  25. v3.3.0

    Features 1

    Notes
    Features
  26. v3.1.12

    Fixes 1

    Notes
    Bug Fixes
    • ui5-tooling-transpile: transpile at startup + caching (#757) (6c7946d)
  27. v3.1.11

    Fixes 1

    Notes
    Bug Fixes
  28. v3.1.10

    Fixes 1

    Notes
    Bug Fixes
  29. v3.1.9

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  30. v3.1.8

    Fixes 1

    Notes
    Bug Fixes
  31. v3.1.7

    Fixes 3

    Notes
    Bug Fixes
  32. v3.1.6

    Fixes 1

    Notes
    Bug Fixes
    • improvements of projects for tooling 3.0 (#696) (6bd880f)
  33. v3.1.5

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  34. v3.1.4

    Fixes 1

    Notes
    Bug Fixes
    • ui5-tooling-modules: make amd bundling more robust for side effects (#679) (1d0e586)
  35. v3.1.3

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  36. v3.1.2

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  37. v3.1.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  38. v3.1.0

    Features 1

    Notes
    Features
    • ui5-tooling-transpile: enable config files (#660) (9f854ec)
  39. v3.0.0

    Breaking 39, Other 3

    Notes
    BREAKING CHANGES
    • new package manager

    • refactor: updated tests to pass with pnpm

    • refactor: iasync still failing

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix(ui5-app): make Karma work with pnpm

    • chore(ui5-app): remove uiveri5 from sample

    • chore(ui5-app): add updated wdio.conf

    • fix: make prettier and eslint work with pnpm

    • fix: fix cf_dest tests

    restructured tests and added node_modules as symlink

    • fix(ui5-app): adding eslint for wdio and mocha

    • chore(ui5-middleware-cfdestination): cleanup

    • feat(ui5-tooling-modules): add bundling support for AMD

    • chore(ui5-tooling-modules): cleanup

    • new package manager

    • refactor: updated tests to pass with pnpm

    • refactor: iasync still failing

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix(ui5-app): make Karma work with pnpm

    • chore(ui5-app): remove uiveri5 from sample

    • chore(ui5-app): add updated wdio.conf

    • fix: make prettier and eslint work with pnpm

    • fix: fix cf_dest tests

    restructured tests and added node_modules as symlink

    • fix(ui5-app): adding eslint for wdio and mocha

    • chore(ui5-middleware-cfdestination): cleanup

    • feat(ui5-tooling-modules): add bundling support for AMD

    • chore(ui5-tooling-modules): cleanup

    • new package manager

    • refactor: updated tests to pass with pnpm

    • refactor: iasync still failing

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix(ui5-app): make Karma work with pnpm

    • chore(ui5-app): remove uiveri5 from sample

    • chore(ui5-app): add updated wdio.conf

    • fix: make prettier and eslint work with pnpm

    • fix: fix cf_dest tests

    restructured tests and added node_modules as symlink

    • fix(ui5-app): adding eslint for wdio and mocha

    • chore(ui5-middleware-cfdestination): cleanup

    • feat(ui5-tooling-modules): add bundling support for AMD

    • chore(ui5-tooling-modules): cleanup

  40. v2.0.1

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  41. v2.0.0

    Breaking 39, Features 1, Other 1

    Notes
    chore
    Features
    BREAKING CHANGES
    • new package manager

    • refactor: updated tests to pass with pnpm

    • refactor: iasync still failing

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix(ui5-app): make Karma work with pnpm

    • chore(ui5-app): remove uiveri5 from sample

    • chore(ui5-app): add updated wdio.conf

    • fix: make prettier and eslint work with pnpm

    • fix: fix cf_dest tests

    restructured tests and added node_modules as symlink

    • fix(ui5-app): adding eslint for wdio and mocha

    • chore(ui5-middleware-cfdestination): cleanup

    • feat(ui5-tooling-modules): add bundling support for AMD

    • chore(ui5-tooling-modules): cleanup

    • new package manager

    • refactor: updated tests to pass with pnpm

    • refactor: iasync still failing

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix(ui5-app): make Karma work with pnpm

    • chore(ui5-app): remove uiveri5 from sample

    • chore(ui5-app): add updated wdio.conf

    • fix: make prettier and eslint work with pnpm

    • fix: fix cf_dest tests

    restructured tests and added node_modules as symlink

    • fix(ui5-app): adding eslint for wdio and mocha

    • chore(ui5-middleware-cfdestination): cleanup

    • feat(ui5-tooling-modules): add bundling support for AMD

    • chore(ui5-tooling-modules): cleanup

    • chore: fix code style

    • fix(ui5-task-flatten-library): support files without extensions

    • refactor: updated tests to pass with pnpm

    • feat(ui5-tooling-modules): support pnpm / node_modules symlinks

    • fix: make prettier and eslint work with pnpm

    • fix: update actions, lerna, vscode for pnpm

    • chore: only run test on tooling extensions

    • chore: use sequential tests for ava

    • chore: add @ui5/cli dev dependency for ava tests

    • chore: enable support for local act GH action tests

    • chore: add docu for local GitHub action execution

    • chore: docu cleanup

    • chore: re-add ncu scripts

    Co-authored-by: Peter Muessig peter.muessig@sap.com

  42. v1.2.5

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  43. v1.2.4

    Notes

    Note: Version bump only for package ui5-middleware-onelogin

  44. v1.2.3

    Other 1

    Notes
    Reverts
    • Revert "chore: add metadata to package.json for all packages for ui5-community website (#600)" (#601) (b6037d4), closes #600 #601
  45. v1.2.2

    Fixes 1

    Notes
    Bug Fixes
  46. v1.1.0

    Features 1

    Notes
    Features
    • ui5-middleware-onelogin: auth support for arbitrary services (edfb188)
173downloads per week, npm
Weekly downloads for ui5-middleware-onelogin26 complete calendar weeks from 2026-04-20 to 2026-10-18; the latest total is 173.20 Apr – 26 Apr: 31427 Apr – 3 May: 4344 May – 10 May: 27411 May – 17 May: 34618 May – 24 May: 61525 May – 31 May: 2611 Jun – 7 Jun: 2378 Jun – 14 Jun: 12915 Jun – 21 Jun: 37722 Jun – 28 Jun: 34729 Jun – 5 Jul: 3396 Jul – 12 Jul: 40913 Jul – 19 Jul: 15320 Jul – 26 Jul: 26727 Jul – 2 Aug: 2673 Aug – 9 Aug: 16710 Aug – 16 Aug: 10717 Aug – 23 Aug: 27624 Aug – 30 Aug: 18131 Aug – 6 Sept: 1767 Sept – 13 Sept: 14314 Sept – 20 Sept: 18421 Sept – 27 Sept: 28328 Sept – 4 Oct: 2515 Oct – 11 Oct: 46812 Oct – 18 Oct: 173
Build and dev-server tooling
  1. UI5 ToolsVS Code extension to serve, proxy, build and deploy UI5 projectsfrom UI5
  2. ui5-middleware-route-proxyUI5 server middleware proxying route prefixes to a backendfrom UI5
  3. ui5-task-cachebuster-indexingUI5 builder task preparing build output for the cachebusterfrom UI5
  4. ui5-task-transpile-genUI5 builder task transpiling ES6 to ES5 with Babelfrom UI5
  5. ui5-middleware-odata-recorderUI5 middleware recording OData traffic as mock server datasetsfrom UI5
  6. ui5-plugin-loaderUI5 Tooling v4 extension that registers other extensionsfrom UI5
  7. ui5-deployerUI5 Tooling module deploying Fiori/UI5 apps to SAP systemsfrom UI5
  8. ui5-task-dts-generatorUI5 builder task generating d.ts type declarationsfrom UI5
  9. ui5-task-minifierUI5 builder task minifying HTML, CSS and JSON filesfrom UI5
  10. ui5-middleware-oidcUI5 dev server middleware adding an OpenID Connect loginfrom UI5
  11. generator-ui5-library-af-deployYeoman generator for Application Frontend config in UI5 librariesfrom UI5
  12. ui5-middleware-destinationUI5 Tooling middleware proxying destinations and neo-app.json routesfrom UI5
  13. ui5-task-check-eocpUI5 build task warning when the app's UI5 version reaches EOCPfrom UI5
  14. @ui5/cliUI5 Tooling command line for project setup, dev server and buildfrom UI5
  15. ui5-task-btp-manifestUI5 Tooling task writing the service name into the importer manifestfrom UI5
  16. ui5-middleware-approuterUI5 CLI middleware proxying the dev server through @sap/approuterfrom UI5
  17. ui5-middleware-capUI5 CLI middleware running a CDS server inside the UI5 dev serverfrom UI5
  18. ui5-middleware-hmrExperimental UI5 middleware for hot module replacementfrom UI5
  19. ui5-middleware-iasyncUI5 middleware syncing interactions across browsers over websocketfrom UI5
  20. ui5-middleware-indexUI5 middleware serving a chosen welcome page at the root pathfrom UI5
  21. ui5-middleware-livereloadLive reload middleware for the UI5 dev serverfrom UI5
  22. ui5-middleware-serveframeworkUI5 middleware serving a locally built UI5 frameworkfrom UI5
  23. ui5-middleware-servestaticUI5 middleware serving static resources from a path or npm packagefrom UI5
  24. ui5-middleware-simpleproxyDev-server middleware proxying requests to a backend systemfrom UI5
  25. ui5-middleware-ui5UI5 middleware including one UI5 application in anotherfrom UI5
  26. ui5-middleware-webjarsUI5 middleware serving static resources from JAR files (WebJars)from UI5
  27. ui5-middleware-websocketWebSocket support for Express-based dev servers such as UI5'sfrom UI5
  28. ui5-task-cachebusterUI5 builder task cachebusting standalone UI5 applicationsfrom UI5
  29. ui5-task-copyrightUI5 builder task appending copyright headers to source filesfrom UI5
  30. ui5-task-flatten-libraryUI5 builder task flattening library output for SAP NetWeaverfrom UI5
  31. ui5-task-i18ncheckUI5 builder task checking XML views for missing i18n textsfrom UI5
  32. ui5-task-minify-xmlUI5 builder task minifying XML views and fragmentsfrom UI5
  33. ui5-task-pwa-enablerUI5 builder task turning a UI5 app into a progressive web appfrom UI5
  34. ui5-task-zipperBuild task packaging the UI5 build result as a zip archivefrom UI5
  35. ui5-tooling-lessUI5 CLI extension compiling Less files into CSSfrom UI5
  36. ui5-tooling-modulesUI5 tooling extensions loading npm packages as UI5 modulesfrom UI5
  37. ui5-tooling-stringreplaceUI5 CLI extension for string replacement during the buildfrom UI5
  38. ui5-tooling-transpileUI5 CLI extension transpiling code during the UI5 buildfrom UI5
  39. @ui5/loggerInternal logger of the UI5 CLIfrom UI5
  40. @ui5/middleware-code-coverageUI5 CLI middleware for Istanbul code coveragefrom UI5
  41. @ui5/tooling-webcDeprecated UI5 Tooling extensions for UI5 Web Components wrappersfrom UI5

Details

Sources4
Added by handdiscovered herechecked
npm registry, ui5-middleware-oneloginversion, releases, installschecked
packages/ui5-middleware-onelogin/README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
latestv3.9.1
first release
releases and cadence55, ~70d median
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainui5, developer-experience
Contributors7
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:ui5-community-ui5-middleware-onelogin
JSON
/artifacts/ui5-community-ui5-middleware-onelogin.json
MCP
Connecting an agent