Skip to content

TEST: Email contains self-asserted name even when name is verified #703

Open
@Tyskai

Description

@Tyskai

Emails are sent using the unverified name and surname of users, even if the account is verified. This happens for all cases of verification (linkedAccounts, Code flows, etc).
The JSONS downloaded from eduID shows that the "main name field" are "the unverified" names. The verified name can only be found in the "linkedAccounts" etc attribute.
The MongoDB shows the "unverified" names.

>   {
>     _id: ObjectId('XX'),
>     email: 'iXXX',
>     chosenName: 'asd',
>     givenName: 'asd',
>     familyName: 'ds',
> 

My feeling it is related to : #639 - Possible the prefer-linked-account API is not used for the code flow?
(And I cannot find the name sources in the JSON or database, as of ticket 639 I should be able to see that, correct?)
The correct data is passed on to other websites, for example tohttps://profile.surfconext.nl/my-profile

Examples below:

Example, an account verified with the CODE flow, still uses the self asserted name:

Image

JSON data van account.


{
  "id" : "65cdd8c0f56fb5184e348e43",
  "email" : "xxxxxxxx",
  "chosenName" : "Peter",
  "givenName" : "Peterc",
  "familyName" : "Doe",
  "uid" : "a0858416-3103-4cb3-a566-b18b1ea37c8b",
  "schacHomeOrganization" : "eduid.nl",
  "newUser" : false,
  "preferredLanguage" : "nl",
  "webAuthnIdentifier" : "ri128T6INWnqzscXvalUy9GtzTAzbCiJUfHcw5Bg2sd5AULT132npPAlk5Qv9OZTfKfbCBfZGcZYfhwgcT4dAw",
  "userHandle" : "VTrluyAZWK3NScBaK_BpJLBFkdetTAVdyFPPvB95roYb7akAZ3STphPNkf2i_GdrlKUFPO1AnX-5uljRPHox0Q",
  "forgottenPassword" : false,
  "attributes" : { },
  "publicKeyCredentials" : [ ],
  "linkedAccounts" : [ ],
  "externalLinkedAccounts" : [ {
    "subjectId" : "138ca31c-4a34-46aa-a193-50d7cd147033",
    "idpScoping" : "serviceDesk",
    "issuer" : {
      "id" : "serviceDesk",
      "name" : "serviceDesk"
    },
    "verification" : "Geverifieerd",
    "serviceUUID" : "138ca31c-4a34-46aa-a193-50d7cd147033",
    "serviceID" : "138ca31c-4a34-46aa-a193-50d7cd147033",
    "subjectIssuer" : "138ca31c-4a34-46aa-a193-50d7cd147033",
    "chosenName" : "Mijn testvoornaam",
    "firstName" : "Mijn testvoornaam",
    "preferredLastName" : "Mijn testachternaam",
    "legalLastName" : "Mijn testachternaam",
    "dateOfBirth" : 54345600000,
    "createdAt" : 1739528321846,
    "expiresAt" : 1928744321846,
    "external" : true,
    "preferred" : true,
    "documentId" : "123456",
    "givenName" : "Mijn testvoornaam",
    "familyName" : "Mijn testachternaam"
  } ],
  "eduIDS" : [ {
    "value" : "6bd71687-8206-45f1-825e-c7393111e55a",
    "serviceProviderEntityId" : "https://mijn.test.eduid.nl/shibboleth",
    "serviceName" : "My eduID",
    "serviceNameNl" : "Mijn eduID",
    "serviceLogoUrl" : "https://static.surfconext.nl/media/sp/eduid.png",
    "services" : [ {
      "entityId" : "https://mijn.test.eduid.nl/shibboleth",
      "name" : "My eduID",
      "nameNl" : "Mijn eduID",
      "logoUrl" : "https://static.surfconext.nl/media/sp/eduid.png",
      "createdAt" : 1739523864576,
      "lastLogin" : 1739528413615
    } ],
    "createdAt" : 1707989184004
  } ],
  "created" : 1707989184,
  "lastLogin" : 1739528413615,
  "nudgeAppMailSend" : false,
  "trackingUuid" : "56081bcb-6ce7-4387-81e4-e0861a7672e3",
  "serviceDeskMember" : false,
  "derivedDateOfBirth" : 54345600000,
  "derivedGivenName" : "Mijn testvoornaam",
  "derivedFamilyName" : "Mijn testachternaam",
  "eduPersonPrincipalName" : "[email protected]"
}

Same for an account link with an institution:

Image

{
  "id" : "67b4ac5bd18b19573f20332d",
  "email" : "XXX",
  "chosenName" : "asd",
  "givenName" : "asd",
  "familyName" : "ds",
  "uid" : "33bfb40c-d6c3-441d-a65c-0ba667037e23",
  "schacHomeOrganization" : "eduid.nl",
  "newUser" : false,
  "preferredLanguage" : "en",
  "forgottenPassword" : true,
  "attributes" : { },
  "publicKeyCredentials" : [ ],
  "linkedAccounts" : [ {
    "institutionIdentifier" : "d4a2482f-9952-e811-80f2-005056956c1a",
    "schacHomeOrganization" : "example.com",
    "eduPersonPrincipalName" : "[email protected]",
    "subjectId" : "[email protected]",
    "givenName" : "Echte naam",
    "familyName" : "Doe",
    "eduPersonAffiliations" : [ "[email protected]" ],
    "preferred" : true,
    "createdAt" : 1739894002777,
    "expiresAt" : 1929110002774,
    "external" : false
  } ],
  "externalLinkedAccounts" : [ ],
  "eduIDS" : [ {
    "value" : "64fd9bbf-7f34-49f0-a552-d8cd6980b170",
    "services" : [ {
      "entityId" : "https://mijn.test.eduid.nl/shibboleth",
      "name" : "My eduID",
      "nameNl" : "Mijn eduID",
      "logoUrl" : "https://static.surfconext.nl/media/sp/eduid.png",
      "createdAt" : 1739893763741,
      "lastLogin" : 1739893866762
    } ],
    "createdAt" : 1739893851678
  } ],
  "created" : 1739893851,
  "lastLogin" : 1739893866762,
  "nudgeAppMailSend" : false,
  "trackingUuid" : "216bee9a-cbce-47ac-ab70-a6b55c9f4e46",
  "serviceDeskMember" : false,
  "derivedGivenName" : "Echte naam",
  "derivedFamilyName" : "Doe",
  "eduPersonPrincipalName" : "[email protected]"
}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready for release

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions