-
-
Save francbartoli/96eb281ad8859d3c042ef0d1a7fa7bfc to your computer and use it in GitHub Desktop.
Imports for FastAPI Basic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Optional | |
import base64 | |
from passlib.context import CryptContext | |
from datetime import datetime, timedelta | |
import jwt | |
from jwt import PyJWTError | |
from pydantic import BaseModel | |
from fastapi import Depends, FastAPI, HTTPException | |
from fastapi.encoders import jsonable_encoder | |
from fastapi.security import OAuth2PasswordRequestForm, OAuth2 | |
from fastapi.security.base import SecurityBase | |
from fastapi.security.utils import get_authorization_scheme_param | |
from fastapi.openapi.docs import get_swagger_ui_html | |
from fastapi.openapi.models import OAuthFlows as OAuthFlowsModel | |
from fastapi.openapi.utils import get_openapi | |
from starlette.status import HTTP_403_FORBIDDEN | |
from starlette.responses import RedirectResponse, Response, JSONResponse | |
from starlette.requests import Request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment