title: Flask basic authentication not accepting username and password
body: <p>I am using BasicAuth in my flask application on a server. Whenever I try to enter the username and password the app just prompts me again to enter the information and it doesn't authenticate me. I am not sure how to fix this. The code in my app is: </p>
  
  <pre><code>app.config['BASIC_AUTH_USERNAME'] = 'user'
  app.config['BASIC_AUTH_PASSWORD'] = 'password'
  
  basic_auth = BasicAuth(app)
  @app.route("/secret")
  @basic_auth.required
  def secret_view():
      return submit.html
  </code></pre>