Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata appear twice #109

Open
aeon3k opened this issue Mar 7, 2025 · 0 comments
Open

Metadata appear twice #109

aeon3k opened this issue Mar 7, 2025 · 0 comments

Comments

@aeon3k
Copy link

aeon3k commented Mar 7, 2025

Hi,

when I add urn:zitadel:iam:user:metadata to the scope, the http://localhost:8080/oidc/v1/userinfo endpoint fetches the following.:

...

 "urn:zitadel:iam:user:metadata": {
        "cid": "MTI",
        "id": "ODQ",
        "ssss": "c2Rxcw"
    }

Great.
But this.$zitadel.oidcAuth.userProfile returns the metadata object twice:

...

"urn:zitadel:iam:user:metadata": [
    {
      "cid": "MTI",
      "id": "ODQ",
      "ssss": "c2Rxcw"
    },
    {
      "cid": "MTI",
      "id": "ODQ",
      "ssss": "c2Rxcw"
    }
  ]

The problem lies in the underlying component "https://github.com/DuendeArchive/identity-model-oidc-client-js" which is not maintened anymore.
I just wanted to raise the issue if someone stumbles into the same problem. Sadly, both the underlying components are outdated vue-oidc-client and oidc-client-js.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant