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

Use of in-field metadata not preferred #1643

Open
aphillips opened this issue Jul 9, 2021 · 3 comments
Open

Use of in-field metadata not preferred #1643

aphillips opened this issue Jul 9, 2021 · 3 comments
Assignees
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. @Risk Items that are at risk for L3 type:technical
Milestone

Comments

@aphillips
Copy link

6.4.2. Language and Direction Encoding
https://www.w3.org/TR/webauthn-2/#sctn-strings-langdir

The first encodes a language tag with the code point U+E0001 followed by the ASCII values of the language tag each shifted up by U+E0000. For example, the language tag “en-US” becomes the code points U+E0001, U+E0065, U+E006E, U+E002D, U+E0055, U+E0053.

The above mechanism was introduced in this version of webauthn to address I18N's comment (#1526) about the need for language/direction metadata. It would be preferable to introduce separate metadata fields. It's unclear if this mechanism is a good idea vs. doing nothing, since presumably implementations might be created and thus constitute a backwards compatibility issue.

@aphillips aphillips added the i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. label Jul 9, 2021
@equalsJeffH
Copy link
Contributor

See also issue #1646

@nadalin nadalin added this to the L3-WD-01 milestone Sep 22, 2021
@equalsJeffH
Copy link
Contributor

See also similar issue in secure-payment-confirmation: w3c/secure-payment-confirmation#93

@plehegar plehegar modified the milestones: L3-WD-01, L3-WD-02 Oct 4, 2023
@nadalin nadalin added the @Risk Items that are at risk for L3 label Jun 13, 2024
@aphillips
Copy link
Author

In our visit to your meeting at TPAC 2024, we discussed the various open I18N issues. This comment is to record what we said the resolution would likely be and I18N's reaction to it. I will add comments linking to this one to the other issues we have open, all of which relate to the same general problem.


In our meeting we discussed that inventing a new language/direction metadata serialization was undesirable, especially since no implementations currently have coded it or support decoding it. If any implementation did start to use this encoding, the result would be the addition of gibberish to values displayed in all other implementations on the Web.

Instead, we discussed that you would remove the additional serialization. For existing fields that antedate standardization, there appears to be no way to introduce field-specific metadata. For new fields that you add to Webauthn, you will follow the single language localizable text field best practices in String-Meta.

It occurred to me after the meeting to suggest providing a resource-wide default would be a way to possibly address the existing fields. These would be additional optional new fields in authentication request/response structures such as AuthenticatorResponse that allow the locale and direction of any contained natural language strings to be indicated without placing a burden on existing systems.

In any case, if you remove the lang/dir serialization from the spec and close this (and related issues), I18N will not object to your progressing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. @Risk Items that are at risk for L3 type:technical
Projects
None yet
Development

No branches or pull requests

5 participants