Closed minimalisti closed 5 years ago
I have worked for tag 7.5.1 ,it works fine for me. In case of "secret" in config.js of pep-proxy ,it can be obtained from keyrock(GUI) in case we are using JSON web token which is used to validate the jwt token.
If we are using simple bearer token the secret needs to be left blank and in Keyrock GUI (nothing selected under token type).
Configurations in pep proxy under config.js file :
config.idm = {
host: '
config.app = {
host: '
where host and port of application which is registered in Keyrock must be entered.
config.pep = { app_id: '', username: '', password: '', token: { secret: '' // Secret must be configured in order validate a jwt }, where app_id, username ,password can be obtained from Keyrock while registering pep proxy and "secret" can be obtained from Keyrock under token type (when jwt is selected).
config.authorization = { enabled: false, pdp: 'idm',
set enabled to true for checking the roles and permissions from keyrock.
@YatinArora-NEC : thank you very much for your help! It seems that I had missed changes made to config.js-file. But now everything is working well.
I am running a FIWARE system using Docker Compose which includes Orion, Keyrock, and Wilma. I use Wilma as a proxy in front of Orion, and using Keyrock as basic PDP. This system works as expected with Wilma 7.0.2 Docker Hub image, and I can request Orion entities if I have a correct access token. However, if I change the Wilma Docker Hub image used in docker-compose.yml from 7.0.2 to 7.4.0 or any later, this causes an error:
Problem seems to be connected to these lines in /controllers/root.js
Any help on getting to use the newer versions of Wilma running would be greatly appreciated!