Hi everyone, I'm running Jenkins in WebSphere 8.5 to manage authentication. It works fine and I can get the JAAS Subject in the Script Console by doing: println com.ibm.websphere.security.auth.WSSubject.getCallerSubject()
I also wrote a plugin that adds a simple custom step (extending the Builder class). I would like to use this plugin to contact some application also running in WAS. To do this I need to get the caller Subject as I did in the console. However, the code above in the perform method returns null. I guess Jenkins runs the step in a different thread without pushing the JAAS Subject. Is there any way (by configuration or programmatically) to force Jenkins to push the Subject to the build step so I can use it? Or maybe a different way to get the caller Subject from the plugin? Thank you very much for your help. -- 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/b9be9c04-cb9a-4fdd-a7cc-903d88d78db9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
