👋 This is a community project and there is no official support for this package! Feel free to use it, open issues, contribute, and help answering questions.
Middleware for ui5-server, enabling a generic login support.
The middleware will authenticate the users using OIDC, behind the hood is express-openid-connect.
- Requires at least
@ui5/cli@4.0.0(to supportspecVersion: "4.0")
npm install ui5-middleware-oidc --save-dev
Configurations are sent directly to express-openid-connect
- Define the dependency in
$yourapp/package.json:
"devDependencies": {
// ...
"ui5-middleware-oidc": "*"
// ...
}- configure it in
$yourapp/ui5.yaml:
server:
customMiddleware:
- name: ui5-middleware-oidc
afterMiddleware: compression
configuration:
issuerBaseURL: "<issuerBaseURL>"
baseURL: "<baseURL>"
clientID: "<clientId>"
clientSecret: "<clientSecret>"
secret: "<sessionSecret>"
idpLogout: true
authorizationParams:
response_type: "code"
scope: "openid profile email"
Apache 2.0.