mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:42:59 +03:00
🐛 Bug Report: "name" is not included in user info #497
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @John-K on GitHub.
Reproduction steps
When I try to use an application that looks for "name" instead of "given_name" and "family_name" in the profile claim, it errors out.
Expected behavior
"name" should be constructed from "given_name" and "family_name" and included in the profile claim
Actual Behavior
Application errors out that no username was returned. This is a slight bug on the application side, but "name" should be included in any case.
@stonith404 commented on GitHub:
@danielgraycode You probably forgot to add those claims in Cloudflare:

The following claims are supported:
"sub", "given_name", "family_name", "name", "email", "preferred_username"@danielgraycode commented on GitHub:
I have updated to v0.4.1 and when using PocketID with Cloudflare Zero Trust, I am still not seeing the name being passed through to user email. Here's an idea of the fields that cloudflare gets with PocketID vs other providers (fields only, content removed- the fields are what's important here)
With PocketID:
Compared to when using another identity provider:
@stonith404 commented on GitHub:
Thanks, I've added it in
v0.4.1.@John-K commented on GitHub:
suggest fixing by adding
"name": user.FirstName + " " + user.LastName,to8ad632e6c1/backend/internal/service/oidc_service.go (L303)