I’m trying to conform to the openid-connect 1.0 spec. Section 5.5 specifies that the “claims” parameter is optional to request that specific Claims be returned.
When supplying a claims parameter to the /authorize endpoint, I get the following log error:
{
"body": {},
"qs": {
"claims": "%7B%22userInfo%22%3A%7B%22https%3A%2F%2Fme.com%2Fpermissions%22%3Anull%7D%7D",
"response_type": "code",
"client_id": "SogZ8yNPaHAdiiWKcpERY7u8nuRvm2tc",
"redirect_uri": "http://auth0.me.com/auth/auth0/callback",
"scope": "openid openid profile email",
"state": "+Rf0Scm+NsLDbZ6NlRcZ6ZZn"
},
"error": {
"message": "Failed to parse claims as JSON",
"oauthError": "invalid_request",
"type": "request-error"
}
}
Auth0 docs for the /authorize endpoint seems to disagree by requesting that custom claim requests be added to the scope parameter.
Am I reading the OpenID-Connect spec incorrectly? Is there a specific way I need to format the claims parameter value to be parsed as JSON correctly?