I have downloaded the Github Jsreports project and updated the jsreports.config.json as follows :
{
"httpPort": 5488,
"trustUserCode": true,
"store": {
"provider": "fs"
},
"blobStorage": {
"provider": "fs"
},
"reportTimeout": 60000,
"extensions": {
"docker-workers": {
"enabled": false,
"container": {
"image": "worker",
"memory": "520m",
"memorySwap": "720m",
"cpus": "0.8"
},
"numberOfWorkers": 3
},
"authentication": {
"cookieSession": {
"secret": "secret_cookie"
},
"admin": {
"username": "admin",
"password": "password"
},
"authorizationServer": {
"name": "keycloak",
"issuer": "https://ip:port/auth/realms/apple",
"endpoints": {
"jwks": "https://ip:port/auth/realms/apple/protocol/openid-connect/certs",
"authorization": "https://ip:port/auth/realms/apple/protocol/openid-connect/auth",
"token": "https://ip:port/auth/realms/apple/protocol/openid-connect/token",
"introspection": "https://ip:port/auth/realms/apple/protocol/openid-connect/token/introspect",
"userinfo": "https://ip:port/auth/realms/apple/protocol/openid-connect/userinfo"
},
"studioClient": {
"clientId": "jsreport-studio",
"clientSecret": "exty7397YpjdwaobSVqVqQzgL5a2CMwB"
},
"apiResource": {
"clientId": "jsreport-api",
"clientSecret": "rkn3PP5pDxLa3LFvdGbiwjuaIhmTVUKK"
},
"usernameField": "username",
"authorizationRequest": {
"scope": ["openid", "profile"]
},
"introspectionRequest": {
"tokenValidScopes": ["jsreport"]
}
},
"enabled": true
},
"sample-template": {
"createSamples": true
}
},
"extensionsList": [
"assets",
"authentication",
"authorization",
"base",
"browser-client",
"child-templates",
"chrome-pdf",
"cli",
"components",
"data",
"docx",
"express",
"freeze",
"fs-store",
"handlebars",
"html-to-xlsx",
"import-export",
"jsrender",
"licensing",
"localization",
"npm",
"pdf-utils",
"pptx",
"public-templates",
"reports",
"sample-template",
"scheduling",
"scripts",
"static-pdf",
"studio",
"studio-theme-dark",
"tags",
"text",
"version-control",
"xlsx"
]
}
The images of the 2 keycloak clients are as follows :