According to the deprecation message, in 5.3 the name property should be left empty when creating the PublicKeyCredentialRpEntity.
$rpEntity = PublicKeyCredentialRpEntity::create(
name: '',
id: 'sub.example.com'
);
That way, the JSON that gets sent back to the client has an rp that only has the id property.
{
"challenge":"random bytes here",
"rp":{
"id":"sub.example.com"
},
"user":{
"id":"A random, 16-byte value generated per account",
"name":"user@example.com",
"displayName":""
},
...
}
The problem is that clients require the rp to have a name property. Otherwise FF and Vivaldi throw errors like "CredentialsContainer.create: Missing required 'name' member of PublicKeyCredentialEntity."
Or am I overlooking something?
According to the deprecation message, in 5.3 the name property should be left empty when creating the
PublicKeyCredentialRpEntity.That way, the JSON that gets sent back to the client has an
rpthat only has the id property.The problem is that clients require the rp to have a name property. Otherwise FF and Vivaldi throw errors like "CredentialsContainer.create: Missing required 'name' member of PublicKeyCredentialEntity."
Or am I overlooking something?