ui5-middleware-oidc
v1.0.7
Published
OIDC for UI5 tooling
Maintainers
Readme
ui5-middleware-oidc
:wave: 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.
Prerequisites
- Requires at least
@ui5/[email protected](to supportspecVersion: "4.0")
Install
npm install ui5-middleware-oidc --save-dev
Configuration options (in $yourapp/ui5.yaml)
Configurations are sent directly to express-openid-connect
Usage
- 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"
License
Apache 2.0.
