opengater-globalauth-client 0.1.5__tar.gz → 0.1.6__tar.gz
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.
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/.idea/workspace.xml +1 -1
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/PKG-INFO +1 -1
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/pyproject.toml +1 -1
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/__init__.py +1 -1
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/broker/events.py +2 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/broker/publisher.py +4 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/models.py +1 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/.idea/misc.xml +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/.idea/modules.xml +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/.idea/opengater-globalauth-client.iml +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/README.md +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/broker/__init__.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/broker/consumer.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/client.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/exceptions.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/fastapi/__init__.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/fastapi/dependencies.py +0 -0
- {opengater_globalauth_client-0.1.5 → opengater_globalauth_client-0.1.6}/src/opengater_globalauth_client/fastapi/middleware.py +0 -0
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<workItem from="1769150497374" duration="620000" />
|
|
85
85
|
<workItem from="1769431218749" duration="1266000" />
|
|
86
86
|
<workItem from="1769441499505" duration="3030000" />
|
|
87
|
-
<workItem from="1769700383611" duration="
|
|
87
|
+
<workItem from="1769700383611" duration="1547000" />
|
|
88
88
|
</task>
|
|
89
89
|
<servers />
|
|
90
90
|
</component>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: opengater-globalauth-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Client library for GlobalAuth authentication service
|
|
5
5
|
Project-URL: Homepage, https://github.com/opengater/globalauth-client
|
|
6
6
|
Project-URL: Documentation, https://github.com/opengater/globalauth-client#readme
|
|
@@ -35,6 +35,7 @@ class UserCreatedEvent(BrokerMessage):
|
|
|
35
35
|
user_id: str
|
|
36
36
|
auth_type: str
|
|
37
37
|
identifier: str
|
|
38
|
+
language: str = "ru"
|
|
38
39
|
extra_data: dict | None = None
|
|
39
40
|
trust: TrustInfo
|
|
40
41
|
|
|
@@ -99,6 +100,7 @@ class CreateUserCommand(BrokerMessage):
|
|
|
99
100
|
|
|
100
101
|
auth_type: Literal["telegram"]
|
|
101
102
|
identifier: str
|
|
103
|
+
language: str = "ru"
|
|
102
104
|
extra_data: dict | None = None
|
|
103
105
|
|
|
104
106
|
# Registration source (optional, mutually exclusive)
|
|
@@ -52,6 +52,7 @@ class GlobalAuthPublisher:
|
|
|
52
52
|
self,
|
|
53
53
|
auth_type: str,
|
|
54
54
|
identifier: str,
|
|
55
|
+
language: str = "ru",
|
|
55
56
|
extra_data: dict | None = None,
|
|
56
57
|
invited_by_id: str | None = None,
|
|
57
58
|
event_id: str | None = None,
|
|
@@ -65,6 +66,7 @@ class GlobalAuthPublisher:
|
|
|
65
66
|
Args:
|
|
66
67
|
auth_type: Authentication type ("telegram")
|
|
67
68
|
identifier: User identifier (e.g., telegram_id)
|
|
69
|
+
language: User language code (default: "ru")
|
|
68
70
|
extra_data: Additional data (username, first_name, etc.)
|
|
69
71
|
invited_by_id: UUID of inviter (referral)
|
|
70
72
|
event_id: Event/campaign ID
|
|
@@ -80,6 +82,7 @@ class GlobalAuthPublisher:
|
|
|
80
82
|
await publisher.create_user(
|
|
81
83
|
auth_type="telegram",
|
|
82
84
|
identifier="123456789",
|
|
85
|
+
language="en",
|
|
83
86
|
invited_by_id="uuid-of-inviter"
|
|
84
87
|
)
|
|
85
88
|
|
|
@@ -95,6 +98,7 @@ class GlobalAuthPublisher:
|
|
|
95
98
|
command = CreateUserCommand(
|
|
96
99
|
auth_type=auth_type,
|
|
97
100
|
identifier=identifier,
|
|
101
|
+
language=language,
|
|
98
102
|
extra_data=extra_data,
|
|
99
103
|
invited_by_id=invited_by_id,
|
|
100
104
|
event_id=event_id,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|