Skip to content

The address property in the userinfo endpoint should be an object instead of a string #67

@sjillen

Description

@sjillen

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:

  1. Register a data_holder and a user with its address parsed as an object
  2. Call userinfo endpoint with the address scope
  3. 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": "..."
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions