Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francbartoli/df2fc8d800799174f17b14756136748c to your computer and use it in GitHub Desktop.
Save francbartoli/df2fc8d800799174f17b14756136748c to your computer and use it in GitHub Desktop.
from fastapi import Security, Depends, FastAPI, HTTPException
from fastapi.security.api_key import APIKeyQuery, APIKeyCookie, APIKeyHeader, APIKey
from fastapi.openapi.docs import get_swagger_ui_html
from fastapi.openapi.utils import get_openapi
from starlette.status import HTTP_403_FORBIDDEN
from starlette.responses import RedirectResponse, JSONResponse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment