Skip to content

Commit

Permalink
Rename things
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Aug 19, 2024
1 parent 78b75a0 commit 58c5f59
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions runtimes/eoapi/auth/eoapi/auth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .auth import OidcAuth # noqa
from .config import AuthSettings # noqa
from .auth import OpenIdConnectAuth # noqa
from .config import Settings # noqa

__version__ = "0.1.0"
2 changes: 1 addition & 1 deletion runtimes/eoapi/auth/eoapi/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


@dataclass
class OidcAuth:
class OpenIdConnectAuth:
openid_configuration_url: AnyHttpUrl
openid_configuration_internal_url: Optional[AnyHttpUrl] = None
allowed_jwt_audiences: Optional[Sequence[str]] = None
Expand Down
2 changes: 1 addition & 1 deletion runtimes/eoapi/raster/eoapi/raster/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def landing(request: Request):

# Add dependencies to routes
if auth_settings.openid_configuration_url and not auth_settings.public_reads:
oidc_auth = auth.OidcAuth(
oidc_auth = auth.OpenIdConnectAuth(
# URL to the OpenID Connect discovery document (https://openid.net/specs/openid-connect-discovery-1_0.html)
openid_configuration_url=auth_settings.openid_configuration_url,
openid_configuration_internal_url=auth_settings.openid_configuration_internal_url,
Expand Down
2 changes: 1 addition & 1 deletion runtimes/eoapi/stac/eoapi/stac/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async def viewer_page(request: Request):


if auth_settings.openid_configuration_url:
oidc_auth = auth.OidcAuth(
oidc_auth = auth.OpenIdConnectAuth(
# URL to the OpenID Connect discovery document (https://openid.net/specs/openid-connect-discovery-1_0.html)
openid_configuration_url=auth_settings.openid_configuration_url,
openid_configuration_internal_url=auth_settings.openid_configuration_internal_url,
Expand Down
2 changes: 1 addition & 1 deletion runtimes/eoapi/vector/eoapi/vector/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ async def refresh(request: Request):


if auth_settings.openid_configuration_url and not auth_settings.public_reads:
oidc_auth = auth.OidcAuth(
oidc_auth = auth.OpenIdConnectAuth(
# URL to the OpenID Connect discovery document (https://openid.net/specs/openid-connect-discovery-1_0.html)
openid_configuration_url=auth_settings.openid_configuration_url,
openid_configuration_internal_url=auth_settings.openid_configuration_internal_url,
Expand Down

0 comments on commit 58c5f59

Please sign in to comment.