refactor: rename OAuth2 variables to OpenID for clarity

This commit is contained in:
maxDorninger
2025-05-30 18:50:50 +02:00
parent 888e3e5688
commit 09beb16a1a
2 changed files with 5 additions and 5 deletions

View File

@@ -11,8 +11,8 @@ from media_manager.auth.users import openid_client
users_router = APIRouter()
auth_metadata_router = APIRouter()
oauth_enabled = openid_client is not None
if oauth_enabled:
openid_enabled = openid_client is not None
if openid_enabled:
oauth_config = OpenIdConfig()
@@ -29,7 +29,7 @@ def get_all_users(db: DbSessionDependency) -> list[UserRead]:
@auth_metadata_router.get("/auth/metadata", status_code=status.HTTP_200_OK)
def get_auth_metadata() -> dict:
if oauth_enabled:
if openid_enabled:
return {
"oauth_name": oauth_config.name,
}