title: Anonym password protect pages without username with Flask
body: <p>I have to implement a very simple user authentication for a Flask project where users can access to the protected pages without usernames. I already checked the <a href="http://flask-basicauth.readthedocs.io/en/latest/" rel="noreferrer">Flask-BasicAuth</a> extension, but it's too "much", you need usernames to use it. I just want to declare a list in my flask file that contains passwords as a string that can be used for accessing to a particular page and it's sub pages. </p>
  
  <p>So my goal is to achieve something like this:</p>
  
  <ol>
  <li>User arrives to <code>xy.com/protected-page</code> and uses a password from <code>passwords = ['pass1', 'pass2', 'pass3']</code> (that are static and not stored in a database)</li>
  <li>After a successful login he/she will be able to see <code>xy.com/protected-page</code>, <code>xy.com/protected-page/sub-page1, xy.com/protected-page/sub-page2</code> etc...</li>
  </ol>
  
  <p>It would be a really great bonus if I could set a session time.</p>
  
  <p>Is it possible? I'm quite new to Flask, so I would appreciate if somebody could help me out. </p>