We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef9051a commit 8fd7d1cCopy full SHA for 8fd7d1c
1 file changed
diracx-routers/src/diracx/routers/auth/token.py
@@ -2,6 +2,7 @@
2
3
from __future__ import annotations
4
5
+import logging
6
import os
7
from typing import Annotated, Literal
8
@@ -31,6 +32,7 @@
31
32
from ..fastapi_classes import DiracxRouter
33
34
router = DiracxRouter(require_auth=False)
35
+logger = logging.getLogger(__name__)
36
37
38
async def mint_token(
@@ -140,6 +142,7 @@ async def get_oidc_token(
140
142
data={"error": "authorization_pending"},
141
143
) from e
144
except ValueError as e:
145
+ logger.exception("ValueError in /token")
146
raise HTTPException(
147
status_code=status.HTTP_400_BAD_REQUEST,
148
detail=str(e),
0 commit comments