Skip to content

NRCO/jsreport-keycloak-auth

Repository files navigation

jsreport-keycloak-auth

install

npm i jsreport-keycloak-auth

configuration

"extensions": {
    "authentication":{
        "enabled": false
    },
    "authorization": {
        "enabled": false
    },
    "keycloak-auth" : {
        "session": {
            "secret": "wgdkçà+&é*ù:djgixc_"
        },
        "api-config": {
            "role": "myclient-api:manage",
            "realm": "master",
            "bearer-only": true,
            "auth-server-url": "http://kc/auth",
            "ssl-required": "external",
            "resource": "myclient-api"
        },
        "client-config": {
            "role": "myclient-api:manage",
            "url": "http://kc/auth/",
            "clientId": "myclient",
            "realm": "master"
        },
        "allowedRoutes": []
    }
}

default values

routes bypass

[
  '/?studio=embed',
  '/css',
  '/img',
  '/js',
  '/lib',
  '/html-templates',
  '/api/recipe',
  '/api/engine',
  '/api/settings',
  '/favicon.ico',
  '/api/extensions',
  '/odata/settings',
  '/auth/config',
  '/api/report'
]

extensions bypass

[
  'woff',
  'ttf',
  'js',
  'css',
  'png',
  'jpg',
  'gif'
]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published