Skip to content

when using htpasswd with api , get Unauthorized #401

Closed

Description

@yosefy

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

Activity

  1. bugy commented on Feb 21, 2021

    @bugy
    Owner
  2. yosefy commented on Feb 21, 2021

    @yosefy
    Author
  3. bugy commented on Feb 21, 2021

    @bugy
    Owner
  4. added this to the 1.18.0 milestone on Sep 3, 2021
  5. added a commit that references this issue on Feb 18, 2023
  6. bugy commented on Feb 18, 2023

    @bugy
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions