Take the 2-minute tour ×  I've been looking for a way to
authenticate user by user and password passed in http header.
curl --user user1:pass1 http://localhost:6543/the_resource  The
idea is to check if passed credentials allow user to view
*the_resource* and if not return 401 - Forbidden.  I've found
only examples of authentication policy where there has to be a
login and logout view or this basic authentication policy which
I don't know how to bind with Pyramid's ACL.  I will appreciate
any help, how to start.  One more thing came to my mind. How to
force this pup-up login window for basic authentication?
share|improve this question add comment  2 Answers  In the end
it became clear how to use authentication and authorization.
Everything was actually written I just didn't catch the concept
at once. I'll try to write how I got it working explaining in a
noobish way, which I had to explain it to myself. I hope it will
be useful to someone. Sources in the end may help to understand
my writing ;) All comments