@@ -663,9 +663,9 @@ X.509 Authentication
663
663
main :
664
664
# ...
665
665
x509 :
666
- provider : your_user_provider
667
- user : SSL_CLIENT_S_DN_Email
668
- credentials : SSL_CLIENT_S_DN
666
+ provider : your_user_provider
667
+ user : SSL_CLIENT_S_DN_Email
668
+ credentials : SSL_CLIENT_S_DN
669
669
user_identifier : emailAddress
670
670
671
671
.. code-block :: xml
@@ -705,7 +705,7 @@ X.509 Authentication
705
705
->provider('your_user_provider')
706
706
->user('SSL_CLIENT_S_DN_Email')
707
707
->credentials('SSL_CLIENT_S_DN')
708
- ->user_identifier ('emailAddress')
708
+ ->userIdentifier ('emailAddress')
709
709
;
710
710
};
711
711
@@ -726,18 +726,24 @@ If the ``user`` parameter is not available, the name of the ``$_SERVER``
726
726
parameter containing the full "distinguished name" of the certificate
727
727
(exposed by e.g. Nginx).
728
728
729
- By default, Symfony identifies the value following ``emailAddress= `` in this parameter.
730
- This can be changed using the ``user_identifier `` parameter .
729
+ By default, Symfony identifies the value following ``emailAddress= `` in this
730
+ parameter. This can be changed using the ``user_identifier `` option .
731
731
732
732
user_identifier
733
- ...........
733
+ ...............
734
734
735
735
**type **: ``string `` **default **: ``emailAddress ``
736
736
737
- The ``user_identifier `` parameter is used to find the user identifier in the
738
- "distinguished name" e.g. ``
Subject: C=FR, O=My Organization, CN=user1, [email protected] ``.
737
+ .. versionadded :: 6.3
738
+
739
+ The ``user_identifier `` option was introduced in Symfony 6.3.
740
+
741
+ The value of this option tells Symfony which parameter to use to find the user
742
+ identifier in the "distinguished name".
739
743
740
- By setting this parameter to ``CN ``, the returned user identifier will be the "Common Name" ``user1 ``
744
+ For example, if the "distinguished name" is
745
+ ``
Subject: C=FR, O=My Organization, CN=user1, [email protected] ``,
746
+ and the value of this option is ``'CN' ``, the user identifier will be ``'user1' ``.
741
747
742
748
.. _reference-security-firewall-remote-user :
743
749
0 commit comments