Describe the bug
When calling the userinfo endpoint with the address scope, the mock-data-recipient expects a string for the address property while the openID connect specs expect a JSON object.
References:
To Reproduce
Steps to reproduce the behavior:
- Register a data_holder and a user with its address parsed as an object
- Call userinfo endpoint with the
address scope
- The mock data recipient returns a 500 error
Expected behaviour
The userinfo endpoint is supposed to return the userinfo data with the address as a JSON object instead of a string as per the openID specs. The address JSON object contains the following properties:
"address": {
"formatted": "...",
"street_address": "...",
"locality": "...",
"region": "...",
"postal_code": "...",
"country": "..."
}