In the following part of configuration, clientId contains a space character ' '.
As a consequence, the when accessing the route having an OAuth2ClientFilter referencing this ClientRegistration, I get the following error in the OpenIG logs :
It seems the clientId is not correctly urlEncoded when sending requests to the IDP (in this case : OpenAM)
To reproduce usIng PyForge :
1-Edit the file /PyForge/PyBot/OpenIG/testcases/functional/Filters_python/OAuth2ClientFilter/RefreshToken/Oauth2RefreshToken.py
update the client_name : from `client_for_oauth2refreshtoken_tests` to `test with spaces` (client name is used both in OpenAM configuration and OpenIG route)
2-Launch the test via the command :