Create a GlobalConfiguration annotated with @Extension and use 
ExtensionList.lookupSingleton to access it from your UnprotectedRootAction.

> On 4. Apr 2019, at 12:17, Daniel Anechitoaie <[email protected]> wrote:
> 
> I have a class that exposes a Webhook and I'd like to check the validity of 
> the token from the incoming request.
> On a builder class I was able to retrieve the configs trough the 
> getDescriptor() class.
> 
> How can I do this on a UnprotectedRootAction class?
> 
> -- 
> 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/98852273-3def-44d6-a82f-0284cd3d021b%40googlegroups.com.
> 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/F4C345E6-00E0-4913-A9F0-796AB2E53B8F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to