Awesome. Those are essentially how I found out about the extension point in the 
first place.

Is there any indication on what context might provide?

Gavin

On Wednesday, December 10, 2014 11:20:19 PM UTC-8, Gavin wrote:
>
> 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/b45b758b-9810-4093-bfed-717a188c8f82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to