Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ui5-middleware-oidc

👋 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

Install

npm install ui5-middleware-oidc --save-dev

Configuration options (in $yourapp/ui5.yaml)

Configurations are sent directly to express-openid-connect

Usage

  1. Define the dependency in $yourapp/package.json:
"devDependencies": {
    // ...
    "ui5-middleware-oidc": "*"
    // ...
}
  1. 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.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages