Skip to content

Add support for WWW-Authenticate header to Unauthorized#1319

Merged
davidism merged 2 commits intomasterfrom
unauthorized-www-authenticate
May 31, 2018
Merged

Add support for WWW-Authenticate header to Unauthorized#1319
davidism merged 2 commits intomasterfrom
unauthorized-www-authenticate

Conversation

@davidism
Copy link
Copy Markdown
Member

continues #795
closes #772

Allows passing a single value or a list of values to www_authenticate argument. Values are converted to string, which supports using datastructures.WWWAuthenticate to help build the values.

dobesv and others added 2 commits May 31, 2018 08:58
In the HTTP spec, the Unauthorized response is required to provide at
least one WWW-Authenticate challenge. This makes it easier to comply
with that spec with Werkzeug exceptions.
allow single value or list of headers
update docs and test, add changelog
@davidism davidism added this to the 0.15 milestone May 31, 2018
@davidism davidism self-assigned this May 31, 2018
@davidism davidism merged commit d129d17 into master May 31, 2018
@davidism davidism deleted the unauthorized-www-authenticate branch May 31, 2018 16:11
cedk added a commit to cedk/werkzeug that referenced this pull request May 6, 2019
davidism pushed a commit to cedk/werkzeug that referenced this pull request May 7, 2019
davidism pushed a commit to cedk/werkzeug that referenced this pull request May 7, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unauthorized HTTPException can't take a WWW-Authenticate header

2 participants