Skip to content

Commit 7bf5535

Browse files
committed
Fix: use typing_extensions for compat with python < 3.8, forgot variable in actions pipeline
1 parent aca3877 commit 7bf5535

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
AUTH0_API_AUDIENCE: ${{ secrets.AUTH0_API_AUDIENCE }}
4444
AUTH0_API_AUDIENCE_WRONG: ${{ secrets.AUTH0_API_AUDIENCE_WRONG }}
4545
AUTH0_EXPIRED_TOKEN: ${{ secrets.AUTH0_EXPIRED_TOKEN }}
46+
AUTH0_WRONG_TENANT_TOKEN: ${{ secrets.AUTH0_WRONG_TENANT_TOKEN }}
4647
AUTH0_M2M_CLIENT_ID: ${{ secrets.AUTH0_M2M_CLIENT_ID }}
4748
AUTH0_M2M_CLIENT_SECRET: ${{ secrets.AUTH0_M2M_CLIENT_SECRET }}
4849
AUTH0_SPA_CLIENT_ID: ${{ secrets.AUTH0_SPA_CLIENT_ID }}

src/fastapi_auth0/auth.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import json
22
import logging
33
import os
4-
from typing import Optional, Dict, List, Type, TypedDict
4+
from typing import Optional, Dict, List, Type
55
import urllib.parse
66
import urllib.request
77

8+
from jose import jwt # type: ignore
89
from fastapi import HTTPException, Depends, Request
910
from fastapi.security import SecurityScopes, HTTPBearer, HTTPAuthorizationCredentials
1011
from fastapi.security import OAuth2, OAuth2PasswordBearer, OAuth2AuthorizationCodeBearer, OpenIdConnect
1112
from fastapi.openapi.models import OAuthFlows
1213
from pydantic import BaseModel, Field, ValidationError
13-
from jose import jwt # type: ignore
14+
from typing_extensions import TypedDict
1415

1516

1617
logger = logging.getLogger('fastapi_auth0')

0 commit comments

Comments
 (0)