This extension point indeed is designed to let you retrieve existing
jenkins user from SCM events and not create duplicates.

https://wiki.jenkins-ci.org/display/JENKINS/Additional+Identities+Plugin
let you manually set such SCM identity to existing jenkins users, but if
you have some alternate algorithm to resolve them from email that's a
better option.

see https://issues.jenkins-ci.org/browse/JENKINS-10258


2014-12-11 8:20 GMT+01:00 Gavin <[email protected]>:

> Hey,
>
> I'm working on writing a new plugin to hook up jenkins to our internal
> company authentication system. I've gotten the Security Realm working, but
> I'm curious how exactly the User.CanonicalIdResolver stuff works.
>
> I'm trying to support mapping new users created by the git plugin to our
> internal setup.
>
> So looking at
>
> https://github.com/jenkinsci/git-plugin/blob/cb6f13a3e3158332f76a45e853b3766fe83d5828/src/main/java/hudson/plugins/git/GitChangeSet.java#L254
>
> I figure if I enable creating accounts based on email, then
> User.CanonicalIdResolver's resolveCanonicalId method will pass in an email
> or my normal username. Then I can do a lookup if the idOrFullName contains
> a @ symbol (or a regex or something).
>
> Is that the right use of this function? Will that prevent the creation of
> the [email protected] accounts?
>
> Gavin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/ebbf1b0c-f371-4011-9a10-f0e9aaa7213b%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/ebbf1b0c-f371-4011-9a10-f0e9aaa7213b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJz%3DphepbrYCJ-f9qUg4oNzo3pAq-VVFwwMebNY668vpQAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to