Add example of external ID key in external ID documentation

Change-Id: Iba402acccf2ef7e6455f7ddffcf41561bb2d7782
This commit is contained in:
David Pursehouse
2019-05-27 16:25:58 +09:00
parent 0da65cf35d
commit 05c4cbad40

View File

@@ -292,9 +292,10 @@ account or an OAUTH identity, to an account in Gerrit.
External IDs are stored as Git Notes in the `All-Users` repository. The
name of the notes branch is `refs/meta/external-ids`.
As note key the SHA1 of the external ID key is used. This ensures that
an external ID is used only once (e.g. an external ID can never be
assigned to multiple accounts at a point in time).
As note key the SHA1 of the external ID key is used, for example the key
for the external ID `username:jdoe` is `e0b751ae90ef039f320e097d7d212f490e933706`.
This ensures that an external ID is used only once (e.g. an external ID can
never be assigned to multiple accounts at a point in time).
[IMPORTANT]
If the external ID key is changed manually you must adapt the note key