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 fastapi import FastAPI, Response, Request, Depends, Header, Cookie, HTTPException, status, WebSocket | |
from fastapi.responses import JSONResponse, PlainTextResponse | |
from jose import jwt | |
AUTH0_DOMAIN='xxxx.us.auth0.com' | |
ALGORITHMS = ["HS256", "RS256"] | |
API_AUDIENCE = 'https://api.example.com/' | |
def decode_auth_header(auth): | |
token = auth.split() |