Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for check_api_key (0.04 sec)

  1. fastapi/security/api_key.py

            """
            return HTTPException(
                status_code=HTTP_401_UNAUTHORIZED,
                detail="Not authenticated",
                headers={"WWW-Authenticate": "APIKey"},
            )
    
        def check_api_key(self, api_key: Optional[str]) -> Optional[str]:
            if not api_key:
                if self.auto_error:
                    raise self.make_not_authenticated_error()
                return None
            return api_key
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 9.6K bytes
    - Viewed (1)
Back to top