Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nilsdebruin/d756c2f44e9561a86003eddee9800599 to your computer and use it in GitHub Desktop.
Save nilsdebruin/d756c2f44e9561a86003eddee9800599 to your computer and use it in GitHub Desktop.
from typing import Optional
from datetime import datetime, timedelta
import jwt
from jwt import PyJWTError
from fastapi import Depends, FastAPI, HTTPException
from fastapi.encoders import jsonable_encoder
from fastapi.security.oauth2 import (
OAuth2,
OAuthFlowsModel,
get_authorization_scheme_param,
)
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, HTMLResponse
from starlette.requests import Request
from pydantic import BaseModel
import httplib2
from oauth2client import client
from google.oauth2 import id_token
from google.auth.transport import requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment