diff --git a/eoapi/auth_utils/auth.py b/eoapi/auth_utils/auth.py index 9b2cb3f..f5ee253 100644 --- a/eoapi/auth_utils/auth.py +++ b/eoapi/auth_utils/auth.py @@ -10,7 +10,7 @@ from fastapi.security.base import SecurityBase from pydantic import AnyHttpUrl -from .types import OidcFetchError +from .errors import OidcFetchError if TYPE_CHECKING: from .config import OpenIdConnectSettings diff --git a/eoapi/auth_utils/errors.py b/eoapi/auth_utils/errors.py new file mode 100644 index 0000000..a5fdb0a --- /dev/null +++ b/eoapi/auth_utils/errors.py @@ -0,0 +1,2 @@ +class OidcFetchError(Exception): + pass \ No newline at end of file diff --git a/eoapi/auth_utils/types.py b/eoapi/auth_utils/types.py index 166ca8b..cf3d1d7 100644 --- a/eoapi/auth_utils/types.py +++ b/eoapi/auth_utils/types.py @@ -1,10 +1,6 @@ from typing import Optional, TypedDict -class OidcFetchError(Exception): - pass - - class Scope(TypedDict, total=False): """More strict version of Starlette's Scope."""