-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Comments
Hi, I'm afraid this is not supported. You still have to use the old flow:
when you log in first, and then auth info is stored in cookies
yosefy <[email protected]> schrieb am So., 21. Feb. 2021, 14:57:
… hi @bugy <https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#401>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJXPJI7C5QOQXQGQHWM4SLTAEGNTANCNFSM4X7AIYTQ>
.
|
thanks
do you think it will work with nginx htpasswd setup?
…On Sun, Feb 21, 2021 at 4:18 PM Iaroslav Shepilov ***@***.***> wrote:
Hi, I'm afraid this is not supported. You still have to use the old flow:
when you log in first, and then auth info is stored in cookies
yosefy ***@***.***> schrieb am So., 21. Feb. 2021, 14:57:
> hi @bugy <https://github.com/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
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#401>, or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAJXPJI7C5QOQXQGQHWM4SLTAEGNTANCNFSM4X7AIYTQ
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#401 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCXF3JGJSKJ5NRZDCM5UMLTAEIZZANCNFSM4X7AIYTQ>
.
|
Yes, basic auth via nginx would work
yosefy <[email protected]> schrieb am So., 21. Feb. 2021, 16:53:
… thanks
do you think it will work with nginx htpasswd setup?
On Sun, Feb 21, 2021 at 4:18 PM Iaroslav Shepilov <
***@***.***>
wrote:
> Hi, I'm afraid this is not supported. You still have to use the old flow:
> when you log in first, and then auth info is stored in cookies
>
> yosefy ***@***.***> schrieb am So., 21. Feb. 2021, 14:57:
>
> > hi @bugy <https://github.com/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
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <#401>, or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AAJXPJI7C5QOQXQGQHWM4SLTAEGNTANCNFSM4X7AIYTQ
> >
> > .
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#401 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ADCXF3JGJSKJ5NRZDCM5UMLTAEIZZANCNFSM4X7AIYTQ
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#401 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJXPJPZZNWBRFIKPXBENFDTAET7ZANCNFSM4X7AIYTQ>
.
|
Done, now basic auth can be used for htpassw and ldap auth. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
what do you say?
thanks
The text was updated successfully, but these errors were encountered: