Skip to content

Instantly share code, notes, and snippets.

@nilsdebruin
Last active June 2, 2019 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nilsdebruin/651c6bc577633fabe4bd812f5b43bbec to your computer and use it in GitHub Desktop.
Save nilsdebruin/651c6bc577633fabe4bd812f5b43bbec 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