这是indexloc提供的服务,不要输入任何密码
Skip to content

Long passwords don't allow authentication #35

@cstuder

Description

@cstuder

I've configured ha-dockermon with a 64 character password and couldn't authenticate afterwards:

http:
  username: username
  password: Jn8NY8Uq2YkImt3peuQhC8YNX3gvf3CjRAMjZJeZH4FOK6FjsZoXNGxeBfzktSGj

(Just a sample password, don't worry...)

Any requests responded with a 401 Unauthorized header, both from Home Assistant and Curl.

Workaround: Shortening the password to 28 characters in my case allows the request to go through and everything works perfectly.

Strangely I can't see any limitation of password length in the source code of ha-dockermon, neither any indication of it in the used library express-basic-auth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions