Sorry, but this is not how this works… You most probably have to implement an ExtensionPoint (i guess hudson.security.SecurityRealm) And then you need to configure Jenkins to use it (If correctly implemented, your new Realm will show up as an option on the security config page in Jenkins). As I sad, have a look at the source of the script-security-realm - it only has two classes and the one you need to look at is: hudson.plugins.script_realm.ScriptSecurityRealm
/Domi On 09.01.2014, at 02:56, dennys <[email protected]> wrote: > Thanks, I try to add a class to extend AbstractPasswordBasedSecurityRealm and > implement authenticate(). > Then I call this class in my code, it shows the log without any exception > but the user is still not login. > > But my code is not a Jenkins plugin, I put the class in WEB-INF/lib > directly. > script-security-realm-plugin is a Jenkins security plugin, I want to use > LDAP and my SSO together, is it possible? > > > > > > -- > View this message in context: > http://jenkins-ci.361315.n4.nabble.com/How-to-build-a-SSO-plugin-in-Jenkins-tp4685472p4686683.html > Sent from the Jenkins dev mailing list archive at Nabble.com. > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
