Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when using htpasswd with api , get Unauthorized #401

Open
yosefy opened this issue Feb 21, 2021 · 4 comments
Open

when using htpasswd with api , get Unauthorized #401

yosefy opened this issue Feb 21, 2021 · 4 comments

Comments

@yosefy
Copy link

yosefy commented Feb 21, 2021

hi @bugy

using htpasswd username to login via UI work great

but

when running
curl -i -u myuser:mypass -X POST -F '__script_name=SCRIPT_NAME' -F 'action=SCRIPT_ACTION' 192.168.0.2:5001/executions/start

we get

HTTP/1.1 401 Unauthorized
Server: TornadoServer/6.0.3
Content-Type: text/html; charset=UTF-8
Date: Sun, 21 Feb 2021 13:50:28 GMT
X-Frame-Options: DENY
Content-Length: 12
Vary: Accept-Encoding

Unauthorized

what do you say?

thanks

@bugy
Copy link
Owner

bugy commented Feb 21, 2021 via email

@yosefy
Copy link
Author

yosefy commented Feb 21, 2021 via email

@bugy
Copy link
Owner

bugy commented Feb 21, 2021 via email

@bugy bugy added the feature label Feb 25, 2021
@bugy bugy added this to the 1.18.0 milestone Sep 3, 2021
@bugy bugy added the resolved label Feb 18, 2023
@bugy
Copy link
Owner

bugy commented Feb 18, 2023

Done, now basic auth can be used for htpassw and ldap auth.
In this case username + password should be provided for every request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants