R

Ravina • 3.96K Points
Extraordinary

Q. What is required to use OAuth2PasswordBearer in FastAPI?

  • (A) Session token
  • (B) Bearer token in Authorization header
  • (C) Cookie-based auth
  • (D) Basic authentication
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
`OAuth2PasswordBearer` expects a bearer token passed via the Authorization header.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.