Affects Version/s: 5.5.1, 6.0.0
The 'address' claim resolver mapping code in the default OIDC claims script results in a non-spec compliant format as demonstrated when accessing the userinfo endpoint.
This also has the side-effect of causing a display problem with the consent page.
Currently the script contains this:
1). Set up an AM OIDC environment where the address scope is requested and populated.
2). Access the userinfo endpoint and verify the current response format for address.
Edit the OIDC claims script and add the following section:
Note that this includes the rest of the fields from the OIDC spec (unimplemented) - delete or complete these as desired. Reference: http://openid.net/specs/openid-connect-core-1_0.html#AddressClaim
...and then adjust the existing address line in the claimAttributes section so that it becomes:
This should give the following output from the userinfo endpoint:
...or like this if the other fields from the addressClaimResolver part of the script are removed:
Note that this adjustment will also allow the consent page to display correctly.