You don't pass the credentials, you pass along the users cookies
On Wed, 20 Oct 2021 at 13:39, t4k30ff <[email protected]>
wrote:
> Hello,
>
> I was currently experimenting with jelly and javascript and wrote a
> RootAction that would be accessed by the loaded page every second through a
> timeout.
> The problem i face now is that if i export the hpi from my test server to
> a "real" one (it's a server on my laptop aswell but with accounts and
> stuff) i get a 403 forbidden and the response reads "Authentication
> required".
> So i did some research and i found that i have to add the "Authentication"
> header to my request with the credentials.
> But my problem now is how to get these credentials (mostly password/-hash;
> i can get username through ${user.name} in jelly).
>
> I'd be glad if you could help me.
>
> Thanks in advance
>
> --
> 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/86abd56d-f99f-4ede-9a1a-435bc6a9a651n%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/86abd56d-f99f-4ede-9a1a-435bc6a9a651n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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/CAH-3BifW%2BQXK_pop7aFEaO6mUb6srAYyNmZLRi5%2B2j4aS2k6nw%40mail.gmail.com.