Bowe Strickland
2018-10-27 323fa95deea50f49c119728fc2eeacb9e0c51241
refs
author Bowe Strickland <bowe@redhat.com>
Saturday, October 27, 2018 13:48 +0200
committer GitHub <noreply@github.com>
Saturday, October 27, 2018 13:48 +0200
commit323fa95deea50f49c119728fc2eeacb9e0c51241
tree 57a94615504f465a941388adafd329d12eef23da tree | zip | gz
parent 197eb3a2ad19c944b88b1ee3bc84c6501ea9ba35 view | diff
Throw 401 for security denial for unauthenticated

The security framework currently throws HTTPForbidden for security failures, regardless of user context.

To better align with security frameworks, such as repoze.who, and internet convention, pyramid should throw 401 for unauthenticated users, to give them the opportunity to log in and try again....
1 files modified
8 ■■■■■ changed files
src/pyramid/viewderivers.py 8 ●●●●● diff | view | raw | blame | history