gj2022
gj2022

Reputation: 1

invalid_request could not parse claims parameter

I am having a problem making a request to the Banno Plugin I do not have this issue when the "View More" section is clicked. I belive that I have found the issue but looks like I cannot reach out to banno directly so wanted to see if there is anyone that has seen this issue.

When reaching out to the auth "a/consumer/api/v0/oidc/auth" endpoint I have assigned claims to the payload

{"userinfo":{"address":null,"birthdate":null}}

But when reviewing the error request I get a invalid_request could not parse claims parameter request on the claim but the claim is no longer the claim I gave it and is injecting /a/consumer/api to the first json object like below:

{"userinfo":{"address":/a/consumer/api,"birthdate":null}}

When I use the Card Action to this external application it works as expected but while in the plugin card it fails due to the parsed claim.

Any feedback would be helpful?

Upvotes: 0

Views: 201

Answers (1)

Jaime Lopez Jr.
Jaime Lopez Jr.

Reputation: 671

Out of curiosity, are you URL encoding the characters claims payload?

The example you've given:

{"userinfo":{"address":null,"birthdate":null}}

...would look like this once it is encoded:

%7B%22userinfo%22%3A%7B%22address%22%3Anull%2C%22birthdate%22%3Anull%7D%7D

Upvotes: 0

Related Questions