Skip to content

How to connect API endpoints using Basic Authentication? #2459

Closed Answered by Haarolean
mk-khan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

upon sending the following request:
curl -i 'http://localhost:8080/auth' --data-raw 'username=admin&password=admin'
you get this response with a cookie:

HTTP/1.1 302 Found
...
Set-Cookie: SESSION=e740e662-f460-4848-943f-72df4a31e090; Path=/; HttpOnly; SameSite=Lax
content-length: 0

Set this cookie for the future requests.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mk-khan
Comment options

@Haarolean
Comment options

Answer selected by Haarolean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2450 on August 17, 2022 14:56.