Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Claims with uri as a key returned as array #1377

Open
maximegel opened this issue May 17, 2021 · 3 comments
Open

Claims with uri as a key returned as array #1377

maximegel opened this issue May 17, 2021 · 3 comments
Labels

Comments

@maximegel
Copy link

maximegel commented May 17, 2021

Current behavior

Our ID token contains claims with uri as a key and an object as the value:

image

For some reason, oidc-client store and return these claims as an array with duplicates:

image

In the image above, elements at index 0 and 1 are structurally the same.

Expected behavior

Claims should be stored and returned exacly the same as they are in the token.

Environment

"oidc-client": "1.11.5"

@brockallen
Copy link
Member

Claims should be stored and returned exacly the same as they are in the token.

But when merging claims from the userinfo endpoint they have to get put in there somehow.

@maximegel
Copy link
Author

@brockallen Thats why I have duplicates? One coming from the ID token and one coming from the userinfo endpoint? It kind of make sense but its not very intuitive. Would it be possible to merge identical claims and return them as an object?

@brockallen
Copy link
Member

Thats why I have duplicates? One coming from the ID token and one coming from the userinfo endpoint?

I don't know, but it's possible.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants