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

[Security] Update custom authenticator docs to include identifier normalization #20636

Open
wants to merge 1 commit into
base: 7.3
Choose a base branch
from

Conversation

Spomky
Copy link
Contributor

@Spomky Spomky commented Feb 7, 2025

Fixes #20632

Improve the documentation for custom authenticators by detailing the concept of user identifier normalization. Introduced the NormalizedUserBadge example to demonstrate how to simplify and standardize identifiers.

Improve the documentation for custom authenticators by detailing the concept of user identifier normalization. Introduced the `NormalizedUserBadge` example to demonstrate how to simplify and standardize identifiers. Clarified how normalization avoids duplicates and ensures consistent user recognition.
@Spomky Spomky force-pushed the features/userid-normalizer branch from b58b83b to a7df8a2 Compare February 7, 2025 21:35
Comment on lines +270 to +274
You can optionally pass a user identifier normalizer as third argument to the
``UserBadge``. This callable receives the ``$userIdentifier``
and must return a normalized user identifier as a string.

.. versionadded:: 7.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New section is not correctly rendered:

image

I don't know how to fix it

Comment on lines +320 to +325
.. note::

Similarly, Google normalizes email addresses so that "john.doe", "j.hon.d.oe",
and "johndoe" all correspond to the same account.
This involves removing dots and converting the email address to lowercase
(though normalization specifics depend on your use case).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the other note below, I'm not sure this one is needed

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

Successfully merging this pull request may close these issues.

[Security] Add a normalization step for the user-identifier in firewalls
4 participants