Skip to content

Commit

Permalink
Fix: use typing_extensions for compat with python < 3.8, forgot varia…
Browse files Browse the repository at this point in the history
…ble in actions pipeline
  • Loading branch information
dorinclisu committed Dec 19, 2021
1 parent aca3877 commit 7bf5535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
AUTH0_API_AUDIENCE: ${{ secrets.AUTH0_API_AUDIENCE }}
AUTH0_API_AUDIENCE_WRONG: ${{ secrets.AUTH0_API_AUDIENCE_WRONG }}
AUTH0_EXPIRED_TOKEN: ${{ secrets.AUTH0_EXPIRED_TOKEN }}
AUTH0_WRONG_TENANT_TOKEN: ${{ secrets.AUTH0_WRONG_TENANT_TOKEN }}
AUTH0_M2M_CLIENT_ID: ${{ secrets.AUTH0_M2M_CLIENT_ID }}
AUTH0_M2M_CLIENT_SECRET: ${{ secrets.AUTH0_M2M_CLIENT_SECRET }}
AUTH0_SPA_CLIENT_ID: ${{ secrets.AUTH0_SPA_CLIENT_ID }}
Expand Down
5 changes: 3 additions & 2 deletions src/fastapi_auth0/auth.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import json
import logging
import os
from typing import Optional, Dict, List, Type, TypedDict
from typing import Optional, Dict, List, Type
import urllib.parse
import urllib.request

from jose import jwt # type: ignore
from fastapi import HTTPException, Depends, Request
from fastapi.security import SecurityScopes, HTTPBearer, HTTPAuthorizationCredentials
from fastapi.security import OAuth2, OAuth2PasswordBearer, OAuth2AuthorizationCodeBearer, OpenIdConnect
from fastapi.openapi.models import OAuthFlows
from pydantic import BaseModel, Field, ValidationError
from jose import jwt # type: ignore
from typing_extensions import TypedDict


logger = logging.getLogger('fastapi_auth0')
Expand Down

0 comments on commit 7bf5535

Please sign in to comment.