Skip to content

Commit be5347a

Browse files
fix: Samll fixes with the debug endpoints
1 parent cf3b2cc commit be5347a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

diracx-db/src/diracx/db/sql/pilot_agents/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async def verify_pilot_secret(self, pilot_id: int, pilot_secret: str) -> None:
8989
result = res.fetchone()
9090

9191
if result is None:
92-
raise AuthorizationError(detail="bad pilot_reference / pilot_secret")
92+
raise AuthorizationError(detail="bad pilot_id / pilot_secret")
9393

9494
# Increment the count
9595
await self.increment_pilot_secret_use(pilot_id=pilot_id)

diracx-routers/src/diracx/routers/pilots/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
logger = logging.getLogger(__name__)
99

10-
router = DiracxRouter()
10+
router = DiracxRouter(require_auth=False)
1111
router.include_router(debug_router)

diracx-routers/src/diracx/routers/pilots/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ..utils.users import AuthorizedUserInfo, verify_dirac_access_token
2222
from .access_policies import RegisteredPilotAccessPolicyCallable
2323

24-
router = DiracxRouter()
24+
router = DiracxRouter(require_auth=False)
2525

2626
# Debug only route
2727
# Keep it?

0 commit comments

Comments
 (0)