title: Custom authentication for FastAPI
body: <p>How can I create custom authentication for fastapi?</p>
  <p>Example:
  I would like to make request with headers {'password': 'best password'} and if password key in header is &quot;best password&quot; allow to visible &quot;auth only&quot; content without changing it in all views (and compatible with generic documentation).</p>