UserContent and Google Login Plugin

16 views
Skip to first unread message

Christoph M

unread,
Jul 18, 2016, 5:19:25 AM7/18/16
to Jenkins Users
Hi!

We're using the Google Login Plugin on our Jenkins. Now I want to serve a file via the userContent folder. This works and I can access the file when logged in with my browser. But now I want the file to be accessible without being logged in. When I try to access the file I am redirected to the Google Login page. Is there a way to generate a token for this single file or is it possible to use my user API token to add as a parameter for the image URL?

Thanks!

Daniel Beck

unread,
Aug 4, 2016, 11:11:23 AM8/4/16
to jenkins...@googlegroups.com
/userContent access needs Overall/Read permission.

Handing out API tokens even as part of URLs is not a good idea, as it gives the full privileges of the user it is associated with.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ae0de9c1-cae9-4cc8-8889-f0aa819a09f5%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Daniel Beck

unread,
Aug 4, 2016, 11:12:01 AM8/4/16
to jenkins...@googlegroups.com

> On 18.07.2016, at 11:19, Christoph M <chm...@gmail.com> wrote:
>
> now I want the file to be accessible without being logged in.

TBH looks like you'd be better off just serving a file via Apache/… somewhere else.
Reply all
Reply to author
Forward
0 new messages