I use the FIWARE IdM to protect an Orion Context Broker. After upgrading FIWARE IDM to the latest version the following POST request, which worked fine in the past, does not work anymore. Does anybody know what the error message means and how to fix it?
headers = CaseInsensitiveDict()
headers["Accept"] = "application/json"
headers["Authorization"] = "Basic CLIENT_SECRET + CLIENT_ID"
headers["Content-Type"] = "application/x-www-form-urlencoded"
response = requests.post('https://$DOMAIN/oauth2/token', headers = headers,
data = {"grant_type":"password", "scope": "permanent",
'username': '$ADMINUSER',
'password': '$ADMIN_PW'})
status_code: 503
reason: Service Unavailable
text: "Cannot read property 'includes' of undefined"
I tried downloading the source code and searched it for the error message but did not find it.
I also found this issue, so I guess it has to do with a change in the request body, but I do not know what to change.
https://github.com/FIWARE/tutorials.Roles-Permissions/issues/6
I further tried different versions of Keyrock by incrementally adapting the Docker-Compose file. The break happens between Version 7.8 and 7.9. So in version 7.8 it still works, while in 7.9 it breaks.