diracx-db 0.0.1a42__py3-none-any.whl → 0.0.1a43__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- diracx/db/sql/auth/db.py +2 -4
- diracx/db/sql/auth/schema.py +0 -1
- diracx/db/sql/dummy/db.py +1 -2
- {diracx_db-0.0.1a42.dist-info → diracx_db-0.0.1a43.dist-info}/METADATA +2 -1
- {diracx_db-0.0.1a42.dist-info → diracx_db-0.0.1a43.dist-info}/RECORD +8 -8
- {diracx_db-0.0.1a42.dist-info → diracx_db-0.0.1a43.dist-info}/WHEEL +0 -0
- {diracx_db-0.0.1a42.dist-info → diracx_db-0.0.1a43.dist-info}/entry_points.txt +0 -0
- {diracx_db-0.0.1a42.dist-info → diracx_db-0.0.1a43.dist-info}/top_level.txt +0 -0
diracx/db/sql/auth/db.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
3
|
import secrets
|
4
|
-
from uuid import UUID, uuid4
|
5
4
|
|
6
5
|
from sqlalchemy import insert, select, update
|
7
6
|
from sqlalchemy.exc import IntegrityError, NoResultFound
|
7
|
+
from uuid_utils import UUID, uuid7
|
8
8
|
|
9
9
|
from diracx.core.exceptions import (
|
10
10
|
AuthorizationError,
|
@@ -126,7 +126,7 @@ class AuthDB(BaseSQLDB):
|
|
126
126
|
code_challenge_method: str,
|
127
127
|
redirect_uri: str,
|
128
128
|
) -> str:
|
129
|
-
uuid = str(
|
129
|
+
uuid = str(uuid7())
|
130
130
|
|
131
131
|
stmt = insert(AuthorizationFlows).values(
|
132
132
|
uuid=uuid,
|
@@ -199,7 +199,6 @@ class AuthDB(BaseSQLDB):
|
|
199
199
|
self,
|
200
200
|
jti: UUID,
|
201
201
|
subject: str,
|
202
|
-
preferred_username: str,
|
203
202
|
scope: str,
|
204
203
|
) -> None:
|
205
204
|
"""Insert a refresh token in the DB as well as user attributes
|
@@ -209,7 +208,6 @@ class AuthDB(BaseSQLDB):
|
|
209
208
|
stmt = insert(RefreshTokens).values(
|
210
209
|
jti=str(jti),
|
211
210
|
sub=subject,
|
212
|
-
preferred_username=preferred_username,
|
213
211
|
scope=scope,
|
214
212
|
)
|
215
213
|
await self.conn.execute(stmt)
|
diracx/db/sql/auth/schema.py
CHANGED
diracx/db/sql/dummy/db.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: diracx-db
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.1a43
|
4
4
|
Summary: TODO
|
5
5
|
License: GPL-3.0-only
|
6
6
|
Classifier: Intended Audience :: Science/Research
|
@@ -14,5 +14,6 @@ Requires-Dist: diracx-core
|
|
14
14
|
Requires-Dist: opensearch-py[async]
|
15
15
|
Requires-Dist: pydantic>=2.10
|
16
16
|
Requires-Dist: sqlalchemy[aiomysql,aiosqlite]>=2
|
17
|
+
Requires-Dist: uuid-utils
|
17
18
|
Provides-Extra: testing
|
18
19
|
Requires-Dist: diracx-testing; extra == "testing"
|
@@ -7,10 +7,10 @@ diracx/db/os/job_parameters.py,sha256=W-2O0cnq91iExcQAEqnCKuA9Ko_6MQaTGALGG8ziQ-
|
|
7
7
|
diracx/db/os/utils.py,sha256=V4T-taos64SFNcorfIr7mq5l5y88K6TzyCj1YqWk8VI,11562
|
8
8
|
diracx/db/sql/__init__.py,sha256=JYu0b0IVhoXy3lX2m2r2dmAjsRS7IbECBUMEDvX0Te4,391
|
9
9
|
diracx/db/sql/auth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
|
-
diracx/db/sql/auth/db.py,sha256=
|
11
|
-
diracx/db/sql/auth/schema.py,sha256=
|
10
|
+
diracx/db/sql/auth/db.py,sha256=QJtBqMrhOf97UvMG0WpyjsgIRiu19v04FoDzXAyXtT0,8952
|
11
|
+
diracx/db/sql/auth/schema.py,sha256=x2PEbmM_bNPdZUN5BMGMrdSmX8zkDeJ3P9XfhLBGBTs,3173
|
12
12
|
diracx/db/sql/dummy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
diracx/db/sql/dummy/db.py,sha256=
|
13
|
+
diracx/db/sql/dummy/db.py,sha256=IW4FzG7ERKbhZvC32KL7Rodu2u-zKAf8BryO4VAdJew,1650
|
14
14
|
diracx/db/sql/dummy/schema.py,sha256=9zI53pKlzc6qBezsyjkatOQrNZdGCjwgjQ8Iz_pyAXs,789
|
15
15
|
diracx/db/sql/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
diracx/db/sql/job/db.py,sha256=PTivVrSl4hrOTgy77WECunPJUJiYzGhSlqO0wYwEuE8,11909
|
@@ -31,8 +31,8 @@ diracx/db/sql/utils/__init__.py,sha256=QkvpqBuIAgkAOywAssYzdxSzUQVZlSUumK7mPxotX
|
|
31
31
|
diracx/db/sql/utils/base.py,sha256=7UxHBNLOSjdrIdslMKW4C_c5H9-6Y1BEimxscri2poE,12367
|
32
32
|
diracx/db/sql/utils/functions.py,sha256=iLqlUIQ6SrDUtDEnZ5szaFbdcINJW15KNbCdGXss6kc,3055
|
33
33
|
diracx/db/sql/utils/types.py,sha256=yU-tXsu6hFGPsr9ba1n3ZjGPnHQI_06lbpkTeDCWJtg,1287
|
34
|
-
diracx_db-0.0.
|
35
|
-
diracx_db-0.0.
|
36
|
-
diracx_db-0.0.
|
37
|
-
diracx_db-0.0.
|
38
|
-
diracx_db-0.0.
|
34
|
+
diracx_db-0.0.1a43.dist-info/METADATA,sha256=BKxluFcc0GKsDdtqG_LLgLhyaJ8TPzqNEzhnIQl2Cn8,670
|
35
|
+
diracx_db-0.0.1a43.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
36
|
+
diracx_db-0.0.1a43.dist-info/entry_points.txt,sha256=UPqhLvb9gui0kOyWeI_edtefcrHToZmQt1p76vIwujo,317
|
37
|
+
diracx_db-0.0.1a43.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
38
|
+
diracx_db-0.0.1a43.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|