Cookie-based authentication #159
Answered
by
warmuuh
savornicesei
asked this question in
Q&A
-
Hi all, Does Milkman Scripting plugin work with cookie-based authentication where the auth, cookie is a http-only cookie? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
warmuuh
Sep 28, 2022
Replies: 1 comment
-
as cookies are simply headers, it works similar. you need to search for the right cookie in milman.response.header.entries (array of {key:.., value:..} objects). after your login-call, you have to look for the Set-Cookie header and parse the value. when sending an authenticated request, you can set the Cookie header accordingly then there is no extra support for cookies though (yet? ;)) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
warmuuh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as cookies are simply headers, it works similar. you need to search for the right cookie in milman.response.header.entries (array of {key:.., value:..} objects). after your login-call, you have to look for the Set-Cookie header and parse the value.
when sending an authenticated request, you can set the Cookie header accordingly then
there is no extra support for cookies though (yet? ;))