Skip to content

Basic auth realm is REQUIRED but handled as optional #13471

@tvogel

Description

@tvogel

According to https://datatracker.ietf.org/doc/html/rfc7617#autoid-3 , specification of the realm parameter is REQUIRED, so making realm optional here

unauthorized_headers = {"WWW-Authenticate": "Basic"}

and at related places, is misleading and makes it easy to create non-conforming APIs. It bit me when a Shelly device refused (rightfully) to authenticate against the API which was using the default (missing) realm behavior.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions